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
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# Build container
$ docker build -t <image_name> .
# Run container
$ docker run -p 3000:3000 <image_name>
# Few other useful commands
$ docker ps # List running containers
$ docker ps -a # List all containers (including stopped ones)
$ docker start <container_id> # Start a stopped container
$ docker stop <container_id> # Stop a running container
$ docker restart <container_id> # Restart a container
$ docker logs <container_id> # Fetch the logs of a container
$ docker exec -it <container_id> bash # Run an interactive shell inside a container
$ docker cp <container_id>:<source_path> <destination_path> # Copy files/folders from a container to the host machine
$ docker cp <source_path> <container_id>:<destination_path> # Copy files/folders from the host machine to a container
$ docker rm <container_id> # Remove a container
$ docker images # List available images on your system
$ docker pull <image_name> # Pull an image from a registry
$ docker inspect <name_or_id> # Display detailed information about a container or image
$ docker network ls # List Docker networks
$ docker volume ls # List Docker volumes
Nest is MIT licensed.