Steps to run the project.
cd into the project directory
Create .env file in root directory.
The content of the .env will look like this.
NODE_ENV=development
PORT=8080
JWT_SECRET=Some secret
JWT_EXPIRATION_MINUTES=55
SSH_USERNAME=VM username
SSH_HOST=EC2 public IP
DST_HOST=documentDbs hostname
MONGO_USER=mongouser
MONGO_PASSWORD=mongouserpassword
MONGO_URI=connectionstring
npm install
Run development mode.
npm run dev
To run on production server
npm run start
docker build -t username/docdb-api-app .
docker run -p 8080:8080 -d username/docdb-api-app
The app uses Amazon's DocumentDB