A full-stack boilerplate combining Next.js App Router (frontend) with Fastify (backend), using Knex.js as the Query Builder and PostgreSQL as the database. Designed for scalability and developer efficiency, this setup follows a monorepo structure with modular packages and applies the Service-Repository Pattern for clean architecture.
Features
- Next.js App Router for modern frontend development.
- Fastify backend for high-performance APIs.
- Knex.js as the Query Builder for PostgreSQL.
- PostgreSQL as the primary database.
- Service-Repository Pattern for clear separation of concerns.
- Users CRUD Example to demonstrate database operations and business logic.
- Monorepo structure for modularity and maintainability.
- Dedicated db package for schema, migrations, and queries.
- Dedicated ui package for reusable frontend components.
- TypeScript support for type-safe development.
Use Case
Ideal for developers looking for a structured monorepo with a clean and scalable architecture, combining Next.js, Fastify, Knex.js, and PostgreSQL. This boilerplate is a great starting point for SaaS platforms, admin panels, and internal tools that require a solid foundation and clear separation between infrastructure and business logic. đ
Boilerplate details
Last update
4 days agoBoilerplate age
4 days ago