Skip to content

A monorepo template with auth & i18n, using: Express.js, Next.js, shadcn/ui, Tailwind, Drizzle and Lucia.

Notifications You must be signed in to change notification settings

tunctn/express-next-turborepo-boilerplate

Repository files navigation

Express.js Next.js Turborepo Boilerplate

This is a basic Turborepo setup for a Next.js app with Express.js server, using TypeScript.

Running the app

Run the following command to start the apps:

pnpm install
pnpm dev

What's inside?

This boilerplate includes following packages/apps:

Apps and Packages

  • web: a Next.js app
  • server: an Express.js app
  • @packages/emails: a React email component library to be used in the server app.
  • @packages/eslint-config: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • @packages/tsconfig: tsconfig.jsons used throughout the monorepo
  • @packages/shared: Shared types and utilities between the server and web apps

Each package/app is 100% TypeScript.

Utilities

This boilerplate has some additional tools already setup for you:

  • Upstash Redis for Redis caching
  • Lucia Auth for authentication
  • Drizzle ORM for database access
  • Shadcn UI for UI components
  • Tailwind CSS for styling
  • Basic users table for the server app
  • Basic auth for the server app & web app
  • Basic access control for the server app
  • Multi-language support for the server app & web app
  • Server versioning (folder based)

as well as:

Build

To build all apps and packages, run the following command:

pnpm build

About

A monorepo template with auth & i18n, using: Express.js, Next.js, shadcn/ui, Tailwind, Drizzle and Lucia.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published