- Install nodejs
- First create .env file by this command
cp .env.example ./.env
- Config environment variables:
- Configure mongodb connection string (DATABASE_URL in env file).
- In this case: DATABASE_URL=mongodb://username:password@host:port/database?options
- Set NODE_ENV in .env file(default is development environment)
- To run project on development:
npm dev
- To run project on production:
npm start
- To run project on development:
yarn dev
- To run project on production:
yarn start