A NoSQL database API for a social networking website, that allows for users to be created, updated and deleted. Friend lists established, thoughts by users posted, and reactions to those thoughts added by users!
-
Git clone
my repository -
Your file structure should resemble the follow:
-
On the command line, in the root of the directory type
npm install
. -
Make sure that package.json, package-lock.json and node_modules are all properly displaying
-
Run
npm test
and ensure a connection was established to your database as follow:
Open Insomnia Core and test the various routes:
USER ROUTES
/api/users
retrieve all users and create a new user/api/users/:id
get user by Id, update a user, or delete a user/api/users/:userId/friends/:friendId
establish a friend list between users
THOUGHT ROUTES
/api/thoughts
retrieve all user thought's and add a new thought/api/thoughts/:id
get thought by id, and update a thoughtapi/thoughts/:userId/:thoughtId
delete a thought/api/thoughts/:thoughtId/reactions
post a reaction to a thought/api/thoughts/:thoughtId/reactions/:reactionId
delete a reaction
- MongoDB
- Express package
- Mongoose package
Hi my name is DiSantoz the developer behind the social-api !
If you have any questions about the usage of this project or any suggestions on how to better this project please feel free to contact me at:
MIT License
Copyright (c) 2021 DiSantoz
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.