This API project follows a thematic week of NodeJS
Install the project :
git clone https://github.com/Mikadows/burgerApi.git
cd burgerApi
Install node modules :
npm i
For this step you will need Docker. Start your MongoDB container:
docker run -d -p "27017:27017" -e MONGO_INITDB_ROOT_USERNAME=USERNAME -e MONGO_INITDB_ROOT_PASSWORD=PASSWORD mongo
Create the file .env
with the following content :
API_PORT=#YourPORT
MONGO_URI=#YourURI
MONGO_USER=#YourUSER
MONGO_PASS=#YourPASSWORD
MONGO_AUTH_SOURCE=#YourAUTHSOURCE
Finally you can start the API :
npm start
Documentation : https://documenter.getpostman.com/view/6952777/SzmmUEYY
Online API : https://arcane-garden-64428.herokuapp.com/