GithubHelp home page GithubHelp logo

social-network-api's Introduction

Social-Network-API

  1. NoSQL Challenge: Social Network API

Description

The purpose is to build an API for a social network web application where users can share their thoughts, react to friends’ thoughts, and create a friend list. This API uses Express.js for routing, a MongoDB database, and the Mongoose ODM.

Table of Contents

Installation

  1. Clone the repository from GitHub
  2. Install node.js
  3. Install MongoDB
  4. Run npm install to install dependencies. Dependencies include Express.js for routing, a MongoDB database, and the Mongoose ODM.
  5. Run npm start to start the web server and connect

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

Video

Video walk-through of User Routes:

  • GET all users
  • GET a single user by its _id
  • POST a new user
  • PUT to update a user by its _id
  • DELETE to remove user by its _id
User.routes.mov

Video walk-through of Thoughts Routes:

  • GET to get all thoughts
  • GET to get a single thought by its _id
  • POST to create a new thought
  • PUT to update a thought by its _id
  • DELETE to remove a thought by its _id
Thoughts-Routes.mov

Video walk-through of Friends Routes:

  • POST to add a new friend to a user's friend list
  • DELETE to remove a friend from a user's friend list
Friends-Routes.mov

Video walk-through of Reactions Routes:

  • POST to create a reaction
  • DELETE to pull and remove a reaction
Reactions.mov

Built With

social-network-api's People

Contributors

lemming97 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.