1.30.3 ⢠Published 1 year ago
@jagadhis/fullstack-monorepo-template v1.30.3
Full-stack Monorepo Template
A modern, production-ready monorepo template featuring Next.js, Node.js, Supabase, and Prisma.
Features
- šļø Monorepo Structure using Turborepo
- šÆ Type Safety with TypeScript
- š Frontend with Next.js
- š ļø Backend with Node.js & Express
- š¦ Database with Prisma & Supabase
- š Version Control with semantic-release
- š Code Quality with ESLint & Prettier
- šŖ Git Hooks with lefthook
- šāāļø Fast Builds with Turborepo's caching
Quick Start
npx @jagadhis/fullstack-monorepo-template my-app
cd my-app
npm run devProject Structure
.
āāā apps/
ā āāā frontend/ # Next.js frontend
ā āāā backend/ # Node.js & Express backend
āāā packages/
ā āāā types/ # Shared TypeScript types
āāā package.json
āāā turbo.jsonAvailable Scripts
npm run dev- Start development serversnpm run build- Build all packagesnpm run lint- Lint all packagesnpm run test- Run tests across packages
Environment Setup
- Frontend (.env.local):
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key- Backend (.env):
DATABASE_URL=your_database_urlContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Commit Convention
This project follows Conventional Commits:
feat:New featuresfix:Bug fixesdocs:Documentation changesstyle:Code style changesrefactor:Code refactoringtest:Adding or modifying testschore:Maintenance tasks
License
MIT Ā© jagadhis
Support
If you find this template helpful, please consider giving it a āļø on GitHub!
For issues and feature requests, please use the GitHub issues page.