Prerequisites
Before you begin, ensure you have the following installed:- Node.js (v18 or higher)
- npm or yarn
- PostgreSQL (v12 or higher)
- Git
Installation
Install dependencies
- NestJS framework
- TypeORM for database management
- Socket.io for WebSocket support
- JWT and Passport for authentication
- PostgreSQL driver
Configure environment variables
Set up the database
Verify Installation
Available Scripts
| Script | Description |
|---|---|
npm run start | Start the application |
npm run start:dev | Start in watch mode for development |
npm run start:debug | Start in debug mode |
npm run start:prod | Start in production mode |
npm run build | Build the application |
npm run lint | Run ESLint |
npm run lint:fix | Fix ESLint issues |
npm run test | Run tests |
npm run test:watch | Run tests in watch mode |
npm run test:cov | Run tests with coverage |
Next Steps
Configuration
Configure environment variables and application settings
Database Setup
Set up database connections and migrations
WebSockets
Learn about real-time communication
API Reference
Explore the API endpoints
