This is a template for an Express api with tRPC, Prisma and Clerk.
- Copy
.env.example
and rename it to.env
, then change the values if needed
- Start the database service with
docker compose up -d db
- You can run
pnpm --filter express exec prisma migrate dev --name init
to create the database, an initial migration and to seed data
# run development server
turbo dev --filter express
# build workspace
turbo build --filter express
# run preview server
turbo preview --filter express
# lint workspace
turbo lint --filter express
# test workspace with type check
turbo test:types --filter express
Note More information about filtering: https://turborepo.org/docs/core-concepts/filtering
# exec prisma cli (database toolkit)
pnpm --filter express exec prisma [command]
Note More information about available commands: https://www.prisma.io/docs/reference/api-reference/command-reference