- Username
- Project Description
- License
- Command to install
- Instructions for users
- Features of the project
- Link to GitHub Repo
- Screenshot of Application
- Bugs
- Version History
- Link to video
- How to contribute
- Questions
Laura-Kam
This app has built an API for a social network web application where users can share their thoughts, react to friends’ thoughts, and create a friend list to keep track of their 'followers'. Apps used are Express.js for routing, a MongoDB database, and the Mongoose ODM. A JavaScript date library is used as well as a native JavaScript Date object to modify timestamps.
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
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
MIT
npm i.
Clone the application, install dependencies: Nodemon, Express, MongoDB and Mongoose. Then run the app using nodemon server.js using 'npm start'.
It is a command-line application, which uses an API for a social network web application where users can share their thoughts, react to friends’ thoughts, and create a friend list to keep track of their 'followers'.
- Post for users did not work. Issue resolved - used capital letters for username - this was not allowed.
- Syntax error router.router - fixed router.route.
- ReactionId was not being found- issue resolved, wrong id key was being used.
- 0.1 models created.
- 0.2 Established connection and finished models.
- 0.3 Completed routes with express.
- 0.4 Created delete routes.
- 0.5 created controllers.
Git clone the repo, work on the code, then make a pull request.
If you have any questions, or would like to get in touch find me on GitHub Laura-Kam or email me at [email protected].