This tutorial will guide you step-by-step to run the Node.js application with MongoDB Atlas (cloud-hosted).
-
Node.js: Make sure Node.js is installed on your machine.
-
MongoDB Atlas:
- Obtain your MongoDB connection URI. Add it to the
.envfile.
- Obtain your MongoDB connection URI. Add it to the
-
Postman (optional): To test HTTP requests.
- Clone the Project
git clone https://github.com/Kalugy/APIFranchiseExample.git
cd franchise-api
npm install-
Configure Environment Variables Add MongoDB credentials and other environment variables to your
.envfile. -
Run the Server
npm run dev-
Test Endpoints in Postman Use Postman to test the API. Link to Postman
-
Optional run with docker
docker-compose up --build
- Task.md: Show an overview of task with acceptation criteria.