A starter template for NestJS applications with MySQL database integration.
This project provides a foundation for building scalable and maintainable backend applications using NestJS framework. It comes with pre-configured MySQL database connection and basic project structure to help you get started quickly.
- Node.js (v14 or later)
The project uses a .env
file for environment configuration. Make sure to configure the following variables:
DATABASE_URL = <db>://<username>:<password>@<host>:<port>/<database_name>
SERVER_PORT = 3000
You can check it out prisma for more information about the DATABASE_URL.
# Development mode
pnpm dev
# Production mode
pnpm build
pnpm start
Once the application is running, you can access the API documentation at:
http://localhost:3000/swagger/website