Coder Social home page Coder Social logo

social-network-api's Introduction

social-network-API

License Badge Language Language

Description

Social Network API is 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 is built by Express.js, MongoDB database, and Mongoose package.

The details for how this API work is in Tests section.

Table of Contents

Installation

Instructions to get the application run:

  1. Download and install Visual Studio Code if user don't have it installed in the computer.
  2. Download and install Node.js if user don't have it installed in the computer.
  3. Open the terminal, first run npm install express mongoose moment to install all the packages:
    • express is for the API routes.
    • mongoose is Object Data Manager.
    • moment is for format the timestamps.

The application server itself runs by command npm start.

Usage

Social Network API gives a social network API:

  1. when user enters the command to invoke the application, then the server is started and the Mongoose models are synced to the MongoDB database.
  2. when user opens API GET routes in Insomnia Core for users and thoughts, then the data for each of these routes is displayed in a formatted JSON.
  3. when user tests API POST, PUT, and DELETE routes in Insomnia Core, then user is able to successfully create, update, and delete users and thoughts in the database.
  4. when user tests API POST and DELETE routes in Insomnia Core, then user is able to successfully create and delete reactions to thoughts and add and remove friends to a user’s friend list.

The demoes for API testing are in Tests section

License

This project is under license MIT

License Link

Contributing

Not Available

Tests

The application's API routes being tested in Insomnia Core.

Start Server, Find All Users and Thoughts

demo

Find Single User and Thought By ID

demo

User Create, Update, and Delete

demo

Thought Create, Update, and Delete

demo

Friend Create and Delete

demo

Reaction Create and Delete

demo

Credits

The lists of resources used to complete this challenge:

  1. Module 18 NoSQL from canvas.
  2. Google (https://www.google.ca/)
  3. MDN Web Docs (https://developer.mozilla.org/en-US/docs/Web/JavaScript).
  4. mongoDB (https://docs.mongodb.com/manual/mongo/).
  5. mongoose (https://mongoosejs.com/).
  6. mongoose validation (https://mongoosejs.com/docs/validation.html).
  7. moment npm (https://www.npmjs.com/package/moment).
  8. Supports from instructor, assistant instructor and Tutor.

Questions

For any questions, please contact me with the information below:

GitHub: @shanshantina

Email: [email protected]

social-network-api's People

Contributors

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