Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 768 Bytes

README.md

File metadata and controls

36 lines (30 loc) · 768 Bytes

EatRoulette-API

This is the API of the EatRoulette project

Installation

Install the project :

git clone https://github.com/EatRoulette/EatRoulette-API.git
cd EatRoulette-API

Install node modules :

npm i

Connect your MongoDB database

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