Academic purpose
Academic purpose
> git clone REPO_URI
> cd backend
> npm i
docker run --name mongodb -p 27017:27017 -v /your_path/db:/data/db -d mongo
- Configuration Example:
- HTTP_HOST -> IP of server, default is 127.0.0.1.
- HTTP_PORT -> Node listening port, default is 3000.
- DB_CONNECTION_STRING -> Mongo db connection string, default running locally is mongodb://localhost:27017/my-db
Rename .env.example to .env, and set parameters required, please dont include env:
.
env:
# This is parameters required.
HTTP_HOST=
HTTP_PORT=
DB_CONNECTION_STRING=
LOG_ACCESS=
> npm i --save-dev nodemon
If database is running,
npm run seed
If database is running,
Run project without nodemon
> npm start
Run project with nodemon
> npm run dev
none
domain/api/*
´´´ none ´´´
@jestrade