A project from the NestJS Foundamentals official course.
- Clone the repo in your machine.
git clone https://github.com/nicolasbracigliano/ilovecoffee.git
- Install the dependencies.
$ yarn install
- Create a
.env
file in the root of the project with the following environment variables.
DATABASE_USER=<db_user>
DATABASE_PASSWORD=<db_password>
DATABASE_NAME=<db_name>
DATABASE_PORT=<db_port>
DATABASE_HOST=<db_host>
- Spin the DB using docker
docker compose up db -d
- Start the development server in watch mode.
yarn run start:dev
-
Visit http://localhost:3000/ to access the running application.
-
Use the Postman Collection to interact with the API.
# unit tests
$ yarn run test
# e2e tests
$ yarn run test:e2e
# test coverage
$ yarn run test:cov
The project is structured such that each chapter has its own branch. This allows for easy access to the chapter of interest and retrieval of the final chapter code. Moreover, every topic within a chapter is accompanied by a corresponding commit.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.