Modern NestJS backend built with TypeScript, featuring enterprise-grade architecture and comprehensive tooling.
- NestJS 11 with TypeScript for scalable server-side applications
- Express.js as the underlying HTTP server
- SWC for ultra-fast compilation and bundling
- Jest for comprehensive testing (unit, e2e, coverage)
- ESLint with TypeScript support for code quality
- Hot Reload for development efficiency
- Modular Architecture with dependency injection
- Built-in Validation and transformation pipes
- Guards and Interceptors for security and logging
- Health Checks and monitoring endpoints
- Install dependencies:
yarn install- Start development server:
yarn start:dev- Build for production:
yarn build
yarn start:prod# Unit tests
yarn test
# E2E tests
yarn test:e2e
# Test coverage
yarn test:cov
# Watch mode
yarn test:watchsrc/
├── app.controller.ts # Main application controller
├── app.module.ts # Root module
├── app.service.ts # Main application service
├── config/ # Configuration files
└── main.ts # Application entry point
yarn start- Start the applicationyarn start:dev- Start in development mode with hot reloadyarn start:debug- Start in debug modeyarn start:prod- Start in production modeyarn build- Build the applicationyarn lint- Run ESLintyarn test- Run unit testsyarn test:e2e- Run e2e testsyarn test:cov- Run tests with coverage
- Modules: Organize code into feature modules
- Services: Business logic in injectable services
- Controllers: Handle HTTP requests and responses
- Guards: Authentication and authorization
- Interceptors: Transform data and handle side effects
- Pipes: Validation and transformation
- Filters: Exception handling
# Build Docker image
docker build -t b4f1 .
# Run container
docker run -p 3002:3002 b4f1# Build application
yarn build
# Start production server
yarn start:prod- B4F - Express.js backend (port 3001)
- Backend - FastAPI Python backend (port 8000)
- Frontend - React + Material-UI (port 3000)
- Frontend1 - React + Tailwind + DaisyUI (port 5173)
MIT License - see LICENSE file for details.