/web-template

Primary LanguageTypeScriptMIT LicenseMIT

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 microservice
  • web: a Next.js app with App Router
  • db: a Prisma ORM
  • eslint-config: eslint configuration
  • proto: Protobufs used throughout the monorepo
  • tailwind-config: tailwindcss configuration
  • tsconfig: tsconfig.jsons used throughout the monorepo
  • ui: a stub React component library shared by the web 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