Skip to content

jagadhis/fullstack-monorepo-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

df7effa Β· Dec 1, 2024

History

64 Commits
Dec 1, 2024
Nov 30, 2024
Nov 30, 2024
Dec 1, 2024
Nov 30, 2024
Dec 1, 2024
Nov 30, 2024
Nov 30, 2024
Nov 30, 2024
Dec 1, 2024
Dec 1, 2024
Nov 30, 2024
Nov 30, 2024
Dec 1, 2024
Dec 1, 2024
Dec 1, 2024
Nov 30, 2024
Nov 30, 2024

Repository files navigation

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 dev

Project Structure

.
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ frontend/          # Next.js frontend
β”‚   └── backend/          # Node.js & Express backend
β”œβ”€β”€ packages/
β”‚   └── types/           # Shared TypeScript types
β”œβ”€β”€ package.json
└── turbo.json

Available Scripts

  • npm run dev - Start development servers
  • npm run build - Build all packages
  • npm run lint - Lint all packages
  • npm run test - Run tests across packages

Environment Setup

  1. Frontend (.env.local):
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_key
  1. Backend (.env):
DATABASE_URL=your_database_url

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Commit Convention

This project follows Conventional Commits:

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation changes
  • style: Code style changes
  • refactor: Code refactoring
  • test: Adding or modifying tests
  • chore: 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.