An API for a social network web application where users can share their thoughts, react to friendsβ thoughts, and create a friend list.
The app uses Express.js for routing, a MongoDB database, and the Mongoose ODM. In addition to using the Express.js and Mongoose packages. It also uses the native JavaScript Date object to format timestamps.
To install necessary dependencies, run the following command:
- npm install
- npm run seed
- 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
- WHEN I enter the command to invoke the application
: This application is covered by the MIT license.
Fork it, and make a pull request.
To run tests, run the following command:
- npm start
If you have any questions about the repo, open an issue or contact me directly at [email protected].
You can find more of my work on GitHub: mahmoo30