8000 GitHub - Leucisticboi/Social-Media-API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Leucisticboi/Social-Media-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social-Media-API

Description

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.

Table of Contents

Description

Acceptance Criteria

Installation

Usage

Walkthrough Video

License

Questions

Acceptance 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 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

Installation

Clone this repository from GitHub

Usage

Open the application in your local IDE. Use the command npm i in your CLI, then npm start. The application will now be running.

Open Insomnia for testing.

To access user data: use the URL http://localhost:3001/api/users

To add/remove friend data: use the URL http://localhost:3001/api/users/(user _id)/friends

To access thought data: use the URL http://localhost:3001/api/thoughts

To add/remove thought data: use the URL http://localhost:3001/api/thoughts/(thought _id)/reactions

For POST, PUT, and DELETE routes, you will need to create a JSON body to send to the server. Reference the walkthrough video below for inspiration.

Walkthrough Video

Walkthrough Video

License

MIT

A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.

Questions

For any questions:

LeucisticBoi's' Github Profile

Email: robert.henderson0597@gmail.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published
347E

Packages

No packages published
0