This is an official Protocol starter turborepo, containing an API, a web app, and a database.
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
database
: a Prisma packageui
: a stub React component library shared byweb
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
The api app is a simple ExpressJS app that uses Prisma to connect to a PostgreSQL database. It also uses TRPC and exposes a REST API.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all apps and packages, run the following command:
cd pxyz-starter-basic
pnpm run build
To develop all apps and packages, run the following command:
cd pxyz-starter-basic
pnpm run dev
api
: http://localhost:4000api:rest
: http://localhost:4000/apiapi:trpc
: http://localhost:4000/trpcapi:docs
: http://localhost:4000/docsapi:openapi.json
: http://localhost:4000/openapi.jsonweb
: http://localhost:3000