Zeswen Monorepo Template
This is a monorepo template to do TypeScript microservices, Prisma + PostgreSQL, gRPC and Next.js applications.
What's inside?
This Monorepo includes the following packages/apps:
Apps and Packages
product-service
: a gRPC microserviceweb
: a Next.js app with App Routerdb
: a Prisma ORMeslint-config
:eslint
configurationproto
: Protobufs used throughout the monorepotailwind-config
:tailwindcss
configurationtsconfig
:tsconfig.json
s used throughout the monorepoui
: a stub React component library shared by theweb
application
Getting started
pnpm
Install pnpm.
Protocol Buffer Compiler
Install Protocol Buffer Compiler.
PostgreSQL
Install PostgreSQL.
Environment Variables
Clone .env.example
to .env
and fill in the values.
Develop
To develop all apps and packages, run the following command:
pnpm dev
Deploy
To build all apps and packages, run the following command:
pnpm build
To start the already built and optimized apps, run the following command:
pnpm start