nestjs-example
NestJS example with using GraphQL (schema stitching, schema reload, dataloader, upload files, subscriptions, response cache), RabbitMQ, Redis, Websocket, JWT authentication, ESLint 9
File Explorer
Download Latest Version (.zip)- pre-commit
- launch.json
- .env
- .env.development
- socket.html
- upload-graphql.html
- upload-rest.html
- cors.middleware.ts
- reloader.controller.ts
- reloader.module.ts
- reloader.service.ts
- stitching.module.ts
- stitching.service.ts
- graphql.module.ts
- graphql.options.ts
- healthz.controller.ts
- healthz.module.ts
- jwt.module.ts
- jwt.service.ts
- logger.decorator.ts
- logger.filter.ts
- logger.middleware.ts
- logger.module.ts
- logger.service.ts
- logger.store.ts
- create.dto.ts
- book.entity.ts
- book.module.ts
- book.resolver.ts
- book.service.ts
- create.dto.ts
- section.entity.ts
- section.module.ts
- section.resolver.ts
- section.service.ts
- models.module.ts
- change-password.dto.ts
- registration-response.dto.ts
- registration.dto.ts
- sign-in-by-password.dto.ts
- sign-in-by-refresh-token.dto.ts
- sign-in-response.dto.ts
- recovery-key.entity.ts
- recovery-key.module.ts
- refresh-token.entity.ts
- refresh-token.module.ts
- user.entity.ts
- user.module.ts
- oauth.controller.ts
- oauth.decorator.ts
- oauth.middleware.ts
- oauth.module.ts
- oauth.service.ts
- rabbitmq.decorator.ts
- rabbitmq.discovery.ts
- rabbitmq.module.ts
- rabbitmq.service.ts
- redis.client.ts
- redis.module.ts
- redis.service.ts
- .gitkeep
- 1728545269541-generated.ts
- 1729581873271-generated.ts
- typeorm.cli.ts
- typeorm.module.ts
- upload.object.ts
- upload-graphql.module.ts
- upload-graphql.resolver.ts
- upload-graphql.service.ts
- upload-rest.controller.ts
- upload-rest.module.ts
- upload-rest.service.ts
- upload.constants.ts
- upload.module.ts
- bcrypt.ts
- errors.ts
- promise.ts
- random.ts
- request.ts
- validate.ts
- ws.adapter.ts
- ws.gateway.ts
- ws.module.ts
- app.env.ts
- app.module.ts
- main.ts
- repl.module.ts
- repl.ts
- .gitkeep
- .dockerignore
- .gitignore
- .tool-versions
- docker-compose.yml
- Dockerfile
- eslint.config.cjs
- LICENSE.md
- nginx.conf
- nodemon.json
- package-lock.json
- package.json
- prettier.config.cjs
- README.md
- tsconfig.build.json
- tsconfig.json
# Installation Guide
git clone https://github.com/tkosminov/nestjs-example
Downloads the entire project code from GitHub to your computer.
cd nestjs-example
Moves into the project folder you just downloaded.
2. Docker
Easy Recommended- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
sudo docker build -t nestjs-example . --build-arg env=development
Builds a runnable image based on the Dockerfile.
sudo docker run -d --network host nestjs-example:latest
Runs the built image as an actual container.
sudo docker ps -a | grep nestjs-example
Type this command into your terminal and run it.
sudo docker exec -it $CONTAINER_ID sh
Type this command into your terminal and run it.
sudo docker logs $CONTAINER_ID
Type this command into your terminal and run it.
Pulled directly from this repo's README.
3. Node.js
Easynpm ci
Type this command into your terminal and run it.
npm run start:dev
Starts the development/run server.
npm run repl:dev
Type this command into your terminal and run it.
npm run madge:full
Type this command into your terminal and run it.
npm run madge:circular
Type this command into your terminal and run it.
Pulled directly from this repo's README.
