add env to readme

This commit is contained in:
Evert Prants 2022-12-06 18:30:42 +02:00
parent f9566af7be
commit 8d0ee3c604

View File

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