๐ฎ๐ฉ Baca versi Bahasa Indonesia
A modular starter project built with NestJS + Prisma ORM featuring a clean and extensible architecture. Perfect for developing modern APIs with local & OAuth authentication, validation, logging, and production-ready setups.
โ
User registration and login with local authentication (email + password)
โ
OAuth login support (Google, Github, etc.) with extensible strategy
โ
Prisma ORM (PostgreSQL/SQLite)
โ
Request validation using Zod
โ
Structured logging with Winston
โ
Clean and modular architecture (clean architecture)
โ
Test service to support e2e testing
src/
โโโ auth/ # Endpoints and authentication logic
โโโ user/ # Endpoints and user logic
โโโ common/ # Shared services such as Prisma & Validation
โโโ model/ # DTOs and response models
โโโ app.module.ts
1๏ธโฃ Install dependencies
npm install
2๏ธโฃ Generate Prisma Client
npx prisma generate
3๏ธโฃ Run database migrations (optional, if using schema migrations)
npx prisma migrate dev
4๏ธโฃ Start the development server
npm run start:dev
Run all unit & e2e tests:
npm run test
POST /api/user/register โ Register a new user.POST /api/auth/login โ Login using email & password.POST /api/auth/oauth โ Login using a token from an OAuth provider (Google, Github, etc.).Contributions are very welcome! Feel free to fork this project, create a new branch for your feature/bugfix, and submit a pull request.
This project is released under the MIT License ยฉ 2025 Kikuk Afandi.
End of Project Documentation. Explore other works.