Social Network API
built using Node.js and MongoDB
Stickify is an API for a social network web application that allows users to share their thoughts, react to their friends' thoughts, and create a friend list.
Click <> code
- the green button. After clicking, in the local tab, copy the SSH key. Open the terminal in your Macbook or git bash, if you have Windows/Linux, and type:
git clone [paste ssh key]
This package requires Node.js,Express.js, MongoDB and Mongoose.
For Node.js
npm i node@lts
For Express.js
npm i express
For MongoDB
npm i mongodb
For Mongoose
npm i mongoose
Open the project in VS Code and make sure you are in the directory of this application before installing the dependencies. To install it, type the commands below on your terminal:
npm i
Once you run this, npm will begin the installation process of all of the current project's dependencies.
The following images are an illustration of the existing collections in the database.
Launch the application by entering the command below on your terminal:
npm start
You can use this API to build your own social network web application where users can share their thoughts, react to friends’ thoughts, and create a friend list.
This API provides endpoints to create, read, update, and delete users and thoughts. You can also create and delete reactions to thoughts and add and remove friends to a user’s friend list.
If you need more guidance on how to use Stickify, click here for the tutorial!
To test this application, you will need to install Postman API or Insomnia.
Open your terminal, make sure you are in the directory of this application and type the command below to seed data to the database so that you can test the routes.
npm run seed
The following animation shows the application's GET routes to return all users, and all thoughts being tested in Insomnia:
The following animation shows the application's GET routes to return a single user and a single thought being tested in Insomnia:
The following animation shows the application's POST, PUT, and DELETE routes for users being tested in Insomnia:
The following animation shows the application's POST, PUT, and DELETE routes for thoughts being tested in Insomnia:
The following animation shows the application's POST and DELETE routes for user's friend list being tested in Insomnia:
The following animation shows the application's POST and DELETE routes for thought's reactions being tested in Insomnia:
For questions and support feel free to contact me via:
Want to report a bug, contribute some code, request a new feature, or improve the documentation? You can submit an issue and I will gladly welcome you as a contributor, but before submitting an issue, please search the issue tracker, as it may already exist!
Our Code of Conduct follows the same principles as the Contributor Covenant, version 2.1.
- W3 Schools
- MDN
- Node.js
- NPM
- README Lab
- Express.js
- Stack Overflow
- dotenv
- Postman API
- Insomnia
- MongoDB
- Mongo Compass
- Mongoose
Please refer to the LICENSE in the repo.