Install depdencies
$ npm install
Start a mongodb instance using a container
$ docker pull mongo
$ docker run -d -p 27017:27017 mongo
Add and .env
file in the root directory and define the following variables:
JWT_TOKEN_EXPIRATION_TIME='15 days'
JWT_SECRET='this-is-a-secret'
MONGODB_URL=mongodb://localhost:27017/school_manager_db
Start the app:
$ npm start