Skip to content

Latest commit

 

History

History
85 lines (49 loc) · 2.07 KB

README.md

File metadata and controls

85 lines (49 loc) · 2.07 KB

Social Network API

Description

Mongoose Object Data Modeling (ODM)

Developed for a social media startup, this application leverages NoSQL databases to efficiently manage substantial unstructured data. Powered by Express.js for seamless routing, it employs MongoDB and Mongoose Object Data Modeling (ODM) to ensure robust scalability and streamlined data handling.

Table of Contents


Installation

  • Open your favorite text editor of choice

  • Open terminal and enter the following command:

    npm start to start sever || npm run dev to to automatically restart server

  • Open API testing tool or Platform of choice & start testing routes

Modules / Packages / Dependencies
  • node js 18.5.0
  • express 4.18.2
  • mongoose 6.9.2
  • dayjs 1.11.7

software:

  • Insomnia Rest API

Usage

WHEN user enters the command to invoke the application
THEN the server is started and the Mongoose models are synced to the MongoDB database.

WHEN User opens API GET routes in Insomnia or any other HTTP-based APIs software or plaform, for users and thoughts
THEN the data for each of these routes is displayed in a formatted JSON.

WHEN user tests API POST, PUT, and DELETE routes in Insomnia or any other HTTP-based APIs software or plaform,
THEN user is able to successfully create, update, and delete users and thoughts in my database.

WHEN user tests API POST and DELETE routes in Insomnia
THEN user is able to successfully create and delete reactions to thoughts and add and remove friends to a user’s friend list

Credits

Ferny Castro

🔗 Github

🔗 Linkedin


License

MIT License

Copyright (c) 2023 Ferny Castro

License: MIT


Demo

Social_media_API-mod18.mov