/NoSQL-Social-NetWORK-API

Backend application using MongoDB

Primary LanguageJavaScriptMIT LicenseMIT

NoSQL-Social-NetWORK-API

My First Social Network!

AboutHow To UseCreditsBugsLicense

User Routes

About

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.

How To Use

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

Credits

This is a backend application. I used materials from class as a resource.

This software uses the following open source packages:

Bugs 🐛

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.

License

MIT


GitHub @bralvis2  ·