This is the API of the EatRoulette project
Install the project :
git clone https://github.com/EatRoulette/EatRoulette-API.git
cd EatRoulette-API
Install node modules :
npm i
For step you will need Docker. To 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