- Create certificates by running following commands:
mkdir certs
openssl genrsa -out certs/privatekey.pem 2048
openssl req -new -key certs/privatekey.pem -out certs/certrequest.csr
openssl x509 -req -in certs/certrequest.csr -signkey certs/privatekey.pem -out certs/certificate.pem
- Copy
docs/template.config.env
to parent directory asconfig.env
and adjust its parameters.
cp docs/template.config.env config.env
- Install node modules using npm.
npm install
mongod
npm run start