Challenge 18
Description
This project is for self-improvement and practice in order to provide myself with confidence within this industry.
I wanted an API for my social network that uses a NoSQL database so that my website can handle large amounts of unstructured data.
Express.js for routing, a MongoDB database, and the Mongoose ODM was used.
Installation & Usage:
Clone the repository on github locally.
Install node modules through the command 'npm install'
Start the server using 'npm start' and open up insomnia
In Insomnia, navigate to http://localhost:3001/api/users to see all users.
You can replace users with other end points to see their respective data.
GitHub Repository:
https://github.com/arkenwald/social-networkAPI
Video Walkthrough:
https://drive.google.com/file/d/1FVS6kDwgC2K8iNr4buOuMjQG_OQovj0z/view
Credits
Collaborated with:
Website Resources:
https://dev.to/franciscomendes10866/setup-mongodb-with-mongoose-and-express-4c58
https://getstream.io/blog/building-a-node-js-powered-api-with-express-mongoose-mongodb/
https://mongoosejs.com/docs/tutorials/findoneandupdate.html
License
MIT License
Copyright (c) 2023, Peter Tong
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.