A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Running the app and db with Docker Compose (Ref)
git submodule init
git submodule update
docker-compose up -d
and then, open http://localhost:3000
docker-compose down --volumes
Running the app and db with Docker (Ref)
docker network create uproad-backend
docker run -d \
--name uproad-db
--network uproad-backend \
--network-alias mysql \
-e MYSQL_ROOT_PASSWORD=uproad88 \
-e MYSQL_DATABASE=uproad \
mysql:5.7
docker exec -it uproad-db mysql -p
docker run -dp 3000:3000 \
-w /app -v ${PWD}:/app \
--network uproad-backend \
-e DATABASE_HOST=mysql \
-e DATABASE_PORT=3306 \
-e DATABASE_USERNAME=root \
-e DATABASE_PASSWORD=uproad88 \
-e DATABASE_NAME=uproad \
node:16-alpine \
sh -c "npm install && npm run start"
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
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.