add env to readme

This commit is contained in:
Evert Prants 2022-12-06 18:30:42 +02:00
parent f9566af7be
commit 8d0ee3c604
1 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,9 @@
# Exercise
1. Run MongoDB `docker-compose up`
2. Create initial resident `npx nestjs-command create:resident`
3. Run the application `npm run start:dev`
4. API is at http://localhost:3000
2. Create `.env` file with `MONGODB_URI=mongodb://root:eprosperatest@localhost:27017/nest`
or just run `echo "MONGODB_URI=mongodb://root:eprosperatest@localhost:27017/nest" > .env`
3. Create initial resident `npx nestjs-command create:resident`
4. Run the application `npm run start:dev`
5. API is at http://localhost:3000
6. `npm run test` to run tests