social media application for serious techies
- database includes
users
andthoughts
schema thoughts
andreactions
are sub-documents tousers
andthoughts
, respectively- modularized codebase for scalability
- schema validation
Currently this is the back-end API codebase only. To test the routes:
- Install Postman or Insomnia
- From the app directory,
node server.js
to start the server on your computer on port 3001 - In Postman or Insomnia, enter the
GET
,POST
,PUT
, orDELETE
route you wish to test and the requisite JSON data (for POST and PUT routes); e.g.,
/api/users
- POST a user
- GET all user
/api/users/:id
- GET single user
- PUT (update) a user
- DEL (delete) a user
/api/users/:id/friends/:friendId
- POST (add) a friend
- DELETE a friend
/api/thoughts
- POST (add) a thought
- GET all thoughts
/api/thoughts/:id
- GET a single thought
- PUT (update) a single thought
- DEL (delete) a thought
/api/thoughts/:id/reactions
- POST a reaction
- DELETE a reaction