Menu Close

social_network_api

Social Network API

Licensing:

license

Table of Contents

Description:

This is a social network api back-end database created in the UW Coding Bootcamp. This is a command line application that utilizes mongoose, express, and moment to view, create, update, and delete data from the database using Insomnia or MongoDB Compass.

Installation:

  • Download it through Github
  • Ensure Insomnia is installed on your own computer
  • Ensure MongoDB Compass is installed on your own computer
  • Ensure express is installed
  • Ensure mongoose is installed
  • Ensure moment is installed

Usage:

Link to Video of Walkthrough for Demonstration:

https://youtu.be/CMaXuKK3Jjc

  • Open terminal and navigate to social_network_api folder
  • Type npm init -y into terminal to create a new .json file
  • Type npm i into terminal
  • Type npm i express into terminal
  • Type npm i mongoose into terminal
  • Type npm i moment into terminal
  • Type npm start into the terminal
  • Once you see the Now Listening indication you may open up your MongoDB Compass and Insomnia software

Screenshots:
On the backend of the app, using Insomnia, the following routes have been created:

GET /api/users

Screenshot

GET /api/users/:userID

Screenshot

POST /api/users

Screenshot

PUT /api/users/:userID

Screenshot

DELETE /api/users/:userID

Screenshot

POST /api/users/:userID/friends/:friendID

Screenshot

DELETE /api/users/:userID/friends/:friendID

Screenshot

GET /api/thoughts

Screenshot

GET /api/thoughts/:thoughtID

Screenshot

POST /api/thoughts

Screenshot

PUT /api/thoughts/:thoughtID

Screenshot

DELETE /api/thoughts/:thoughtID

Screenshot

POST /api/thoughts/:thoughtID/reactions

Screenshot

DELETE /api/thoughts/:thoughtID/reactions/reactionID

Screenshot

MongoDB Compass for socialmediaDB

Screenshot

MongoDB Compass for socialmediaDB users

Screenshot

MongoDB Compass for socialmediaDB thoughts

Screenshot

License:

MIT

Contributing:

Contributions are welcome through forking my repository.

Tests:

None

Questions:

View Source Code
Posted in Development