This is a template for a NextJS + Elysia + Better Auth + Supabase project. It uses the following technologies:
- NextJS for the frontend
- Elysia for the backend
- Better Auth for authentication
- Supabase for the database
Run the following command:
bun installThis project includes the following packages/apps:
-
web: an Next.js app -
backend_worker: an Elysia app -
api: another Elysia app -
auth: a custom authentication module using Better Auth -
database: a custom database module using Supabase with Prisma -
@template/ui: a stub React component library shared by bothwebandbackend_workerapplications -
@template/eslint-config:eslintconfigurations (includeseslint-config-nextandeslint-config-prettier) -
@template/typescript-config:tsconfig.jsons used throughout the monorepo
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To develop all apps and packages, run the following command:
cd template
# Install dependencies
bun install
# Change the .env.local file with your credentials
# Start the development server
bun dev