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.
-
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
- node js 18.5.0
- express 4.18.2
- mongoose 6.9.2
- dayjs 1.11.7
software:
- Insomnia Rest API
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
🔗 Github
Copyright (c) 2023 Ferny Castro