About • How To Use • Credits • Bugs • License
This application is a backend social network framework that stores data by a NoSQL database. It uses MongoDB as the database. You will need to have Node.js and Mongoose installed on your computer.
To use run this application, it should be cloned and invoked in the command line of your terminal. When the server is started and the Mongoose models are synced to the MongoDB database, you can view user data in MongoDB Compass. Users can open API GET routes in Insomnia for users and thoughts and data for each of these routes is displayed in a formatted JSON. Users are able to successfully create, update, and delete users and thoughts in the database. Users are able to create and delete reactions to thoughts and add and remove friends to a user’s friend list.
To clone and run this application, you'll need Git and Node.js (which comes with npm) installed on your computer. you will also need Express.js and Mongoose From your command line:
# Clone this repository
$ git clone git@github.com:bralvis2/NoSQL-Social-NetWORK-API.git
# Go into the repository
$ cd NoSQL-Social-NetWORK-API
# Install dependencies
$ npm install
# Install express
$ npm i express
# Install mongoose
$ npm i mongoose
# Run the app
$ npm start
Note If you're using Linux Bash for Windows, see this guide or use
node
from the command prompt.
Once you've started the application, open insomnia and test the routes.
Check out this DEMO
This is a backend application. I used materials from class as a resource.
This software uses the following open source packages:
- Node.js
- Express.js
- Mongoose
- Insomnia
- Emojis are taken from here
I had a difficult time seeding my data and I was able to see the seeds in mongoose compass but I was not able to see the seeds in insomnia.
MIT
GitHub @bralvis2 ·