Nest Js Starter is a boilerplate project designed to help you kickstart your backend application using NestJS. It comes pre-configured with essential tools and best practices for building scalable, maintainable, and high-performance APIs.
- NodeJs
- Postgres
- Redis (Queue & Cache)
# Clone the repository
git clone https://github.com/zera-app/nest-11-starter.git
# Navigate to the project directory
cd nest-11-starter
# Install dependencies
npm install
# or
bun installcp .env.example .envnpm run start:dev
# or
bun run start:devnpm run build
# or
bun run buildEnvironment variables are defined in .env.example. Key variables:
DATABASE_URL– PostgreSQL connection stringREDIS_HOST– Redis server hostREDIS_PORT– Redis server portPORT– Application port
Copy and update:
cp .env.example .envnpm run build # Build for production
npm run format # Format code using prettier
npm run start:backend # start the backend service only
npm run start:client # start the client service only
npm run start # start both backend and client
npm run start:dev # start both backend and client in watch mode
npm run start:debug # start both backend and client in debug mode
npm run start:prod:backend # start the backend service for production
npm run start:prod:client # start the client service for production
npm run lint # Run lint- Build the application:
npm run build
- Start the compiled app using pm2:
npm start:prod:backend && start:prod:client
Contributions are welcome! Please open issues or submit pull requests. Ensure code follows existing lint rules and has accompanying tests.