MOBDEVE Machine Project
-
if ever the fetching of data from the default url which is
https://alintana-backend.herokuapp.com
is slow. Uncomment out the alternative url found atalintana/app/src/main/java/com/mobdeve/s17/dizon/palmares/alintana/api/APIClient.kt
line11
and comment line10
-
Then open a terminal of the folder and traverse to
backend
directorycd backend
-
run
npm install
to install the dependencies -
Create a
config.env
file (inside backend directory) and input the needed environment variables found below -
run
npm run start
to start the backend
PORT=3000
DATABASE=mongodb+srv://alyssa:\<PASSWORD>@cluster0.llilw.mongodb.net/alintana?retryWrites=true&w=majority
DATABASE_LOCAL=mongodb://localhost:27017/alintana
DATABASE_PASSWORD=Oc0wcxoiFr2oyZm4
CLOUDINARY_NAME = db29tm4pj
CLOUDINARY_API_KEY = 927632498667314
CLOUDINARY_API_SECRET = t2LCmMLBvS7RYdLGhhtSvBYLbDE