Skip to content

Latest commit

 

History

History
89 lines (50 loc) · 3.03 KB

File metadata and controls

89 lines (50 loc) · 3.03 KB

Table of Contents

  1. Title
  2. Usage
  3. Installtion
  4. Contribution
  5. Tests
  6. User Story
  7. Description
  8. Walk through Video

Title

Social NetWork Api

Usage

  • Use Mongoose to interact with a MongoDB database and express to build routes.

  • Make GET, POST, PUT, and DELETE requests from the database.

Installation

  • First make sure you have MongoDB installed. You can get it from their website.

https://www.mongodb.com/try/download/community

  • Make sure you are in the root folder directory. In the command line type "npm install" to install all node packages.

Screenshot 2022-04-27 113015

  • Packages that will be installed are express and mongoose.

Screenshot 2022-04-27 113238

Tests

  • In the command line type "npm start" to get the Mongoose server started.

Screenshot 2022-04-27 112752

  • Run with Insomnia or Postman and test all routes for Users, Friends, Thoughts, and Reactions.

Screenshot 2022-04-27 113720

Screenshot 2022-04-27 113813

Screenshot 2022-04-27 113906

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

Given a social network API

  • When you enter the command to invoke the application,

  • Then your server is started and the Mongoose models are synced to the MongoDB database.

  • When you open API GET routes in Insomnia for users and thoughts,

  • Then the data for each of these routes is displayed in a formatted JSON

  • When you test API POST, PUT, and DELETE routes in Insomnia,

  • Then you are able to successfully create, update, and delete users and thoughts in your database

  • When you test API POST and DELETE routes in Insomnia,

  • Then you are able to successfully create and delete reactions to thoughts and add and remove friends to a user’s friend list

GitHub Username

https:/github.com/mikeydgithub

Contribution

Made by Mike Diamond

Email and Contact Information

ampgzo2@gmail.com

Walk through Video

https://drive.google.com/file/d/1OFj_6gz1qiyXBNLN2nibw8t_0xptBIkK/view