Simple Node JS API. Live demo available here
- Node JS
- Express
- MongoDB
- Run
git clone https://github.com/JacobJax/node-posts.git - Run
cd node-poststo navigate to the project folder - Run
npm installto install dependencies
After cloning the project, installing node modules and creating a Mongo DB Atlas account, create a .env file.
In the .env file, add your connection string from Mongo DB atlas which looks something like this mongodb+srv://<username>:<password>@cluster0.wwoebgl.mongodb.net/?retryWrites=true&w=majority.
Set DB_CONNECTION_STRING=mongodb+srv://<username>:<password>@cluster0.wwoebgl.mongodb.net/?retryWrites=true&w=majority and PORT=5000(Optional)
You can then run npm run start to view the project on localhost:5000.
- Clone or Fork the project
- Create an issue describing what you're working on and create a branch from your issue.
- Work on your issue, push to the brach you created and create a new pull request.