This repository contains various demo projects built with Node.js. It serves as a collection of sample applications, boilerplates, and best practices for Node.js development. The goal is to provide easy reference and quick setup for different Node.js frameworks and use cases, helping developers learn and experiment with Node.js technologies.
node-demos/
├── nestjs/ # Main NestJS demo project
├── nestjs-auth/ # Authentication demo with NestJS and TypeORM
├── docker/ # Docker compose files for local development
├── commitlint.config.js
├── package.json
├── README.md
└── ...
- NestJS Boilerplate: Starter template for NestJS projects.
- Base NestJS: Basic NestJS setup.
- NestJS Authentication: Authentication with NestJS and TypeORM.
- Node.js (v18+ recommended)
- pnpm (or npm/yarn)
- Docker (for local database setup)
Clone the repository:
git clone https://github.com/vndevteam/node-demos.git
cd node-demos
Install dependencies for each project:
cd nestjs
pnpm install
# or
cd nestjs-auth
pnpm install
Start the NestJS server:
pnpm start
For authentication demo:
cd nestjs-auth
pnpm start
To start local databases (MySQL/PostgreSQL):
docker-compose -f docker/docker-compose_mysql.local.yml up -d
# or
docker-compose -f docker/docker-compose-postgresql.local.yml up -d
This project is licensed under the MIT License.