MiaYun98 / monsocial-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

monsocial-api

Description

When you are starting the program you should npm i to download all the package and then start the program by using node

You can get all users, create, get single user, delete user, add friends, delete friends, and update user information with the user database.

Also you can get all thoughts, create thought, single thought, add reaction to the thought, delete reaction, and update the thoughts

When you delete the user all the beloging thoughts and reactions also deletes from the thought database

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

Accepatance Criteria

GIVEN a social network API
WHEN I enter the command to invoke the application
THEN my server is started and the Mongoose models are synced to the MongoDB database
WHEN I 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 I test API POST, PUT, and DELETE routes in Insomnia
THEN I am able to successfully create, update, and delete users and thoughts in my database
WHEN I test API POST and DELETE routes in Insomnia
THEN I am able to successfully create and delete reactions to thoughts and add and remove friends to a user’s friend list

Langauge

JavaScript

Usage

It is API for the User Blog post that created with the mongoDB

Live Website

This is the walkthrough video of this program

https://youtu.be/BkVX3GduoGo

Contact

Sangmi Yun: https://www.linkedin.com/in/sangmi-yun-0a4241201/

About


Languages

Language:JavaScript 100.0%