Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Network API

License: MIT

License

https://opensource.org/license/mit/

Description

Building an API for a social network web application where users can share their thoughts, react to friends' thoughts, and create a friend list. Using Express.js for routing, a MongoDB database, and the Mongoose ODM.

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

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

Installation

Node.js and MongoDB are required to run this application. Clone the repository from git up. Install all necessary dependencies by navigating to the root directory and running the command: npm i.


Usage

Start the application by running npm start from the command line. Use MongoDB to view the Database and Insomnia to test the API routes.

Screen Shot 2024-01-26 at 7 25 48 PM Screen Shot 2024-01-26 at 7 26 05 PM

Tests

N/A

Credits

I would like to thank my instructor Andrew Layendecker for his help during office hours and my tutors Eric Sayer and Jacob Carver.

License

MIT

#License used for this project. If you need help choosing a license, refer to https://choosealicense.com/.


Contact

Github Repository : www.github.com/cmfyoung/Social-Network-API

Video Walkthrough Link : https://drive.google.com/file/d/1ZnJBRow5XhfCzjDwavhP7PzKvbv33oxp/view

Author: Christopher Young

Email: cmfyoung7@gmail.com

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages