Skip to content

API for a social network web application where users can share their thoughts, react to friends' thoughts, and create a friends list.

Notifications You must be signed in to change notification settings

webprinc3ss/social-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Network

Language

Table of Contents

  1. Description
  2. Installation Instructions
  3. Usage Information
  4. Tests
  5. Questions

Description

API for a social network web application where users can share their thoughts, react to friends' thoughts, and create a friends list.

Using Express.js and Mongoose ODM, create models in MongoDB and routes for the RESTful API end-points. Use the Moment.js npm package to format time.

Screenshot

Github Pages

Code Walk-through

API Demo in Insomnia

Installation Instructions

Clone the repo

Install node.js

Type npm i in to your terminal.

Usage Information

Type npm i to install the dependencies, then npm start to start the server. Test routes using using Insomnia.

Tests

Use Insomnia Core to test the following endpoints Download Insomnia Core

Users
    GET:        localhost:3001/api/users/
    GET by ID:  localhost:3001/api/users/:id
    CREATE:     localhost:3001/api/users
    UPDATE:     localhost:3001/api/users/:id
    DELETE:     localhost:3001/api/users/:id

Thoughts
    GET:        localhost:3001/api/thoughts
    GET by ID:  localhost:3001/api/thoughts/:id
    CREATE:     localhost:3001/api/thoughts
    UPDATE:     hlocalhost:3001/api/thoughts/:id
    DELETE:     localhost:3001/api/thoughts/:id

Reactions
    CREATE:     localhost:3001/api/thoughts/:id/reactions
    DELETE:     localhost:3001/api/thoughts/:id/reactions/:id

Friends
    CREATE:     localhost:3001/api/thoughts/:id/friends/:id
    DELETE:     localhost:3001/api/thoughts/:id/friends/:id

Questions

Please feel free to contact me, webprinc3ss at Github: https://github.com/webprinc3ss

or

djabranton@gmail.com.

About

API for a social network web application where users can share their thoughts, react to friends' thoughts, and create a friends list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published