You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 months ago | |
---|---|---|
.vscode | 6 months ago | |
src | 6 months ago | |
test | 6 months ago | |
.eslintrc.js | 6 months ago | |
.gitignore | 6 months ago | |
.prettierrc | 6 months ago | |
README.md | 6 months ago | |
docker-compose.yml | 6 months ago | |
mongo-init.js | 6 months ago | |
nest-cli.json | 6 months ago | |
package-lock.json | 6 months ago | |
package.json | 6 months ago | |
tsconfig.build.json | 6 months ago | |
tsconfig.json | 6 months ago |
README.md
Exercise
- Run MongoDB
docker-compose up
- Create
.env
file withMONGODB_URI=mongodb://root:eprosperatest@localhost:27017/nest
or just runecho "MONGODB_URI=mongodb://root:eprosperatest@localhost:27017/nest" > .env
- Create initial resident
npx nestjs-command create:resident
- Run the application
npm run start:dev
- API is at http://localhost:3000
npm run test
to run tests