Skip to content

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.

License

Notifications You must be signed in to change notification settings

andreahergert/social_network_api

Repository files navigation

Social Network API

Licensing:

license

Table of Contents

User Story:

AS A social media startup

I WANT an API for my social network that uses a NoSQL database

SO THAT my website can handle large amounts of unstructured data

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:

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published