Skip to content

Starter Kit Turbo Monorepo - Express, Next.js, tRPC, Prisma (Postgresql)

Notifications You must be signed in to change notification settings

raulcanodev/monorepo-express-next-trpc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

First Step

1. Clone this repo

2. Install dependencies

pnpm install

3. Set up local database

This will create a docker container.

# Copy the environment file
cp packages/database/.env.example packages/database/.env
# Make the create database script executable
chmod +x scripts/create-database.sh

# Start PostgreSQL in Docker
pnpm db:start

Initialize database

# Generate Prisma Client
cd packages/database
pnpm db:generate

# Push schema to database
pnpm db:push

# Seed the database (optional)
pnpm db:seed

# Return to root
cd ../..

Start the development servers

pnpm dev

The application should now be running at:

Project Structure

.
├── apps/
│   ├── server/        # Express backend
│   └── web/          # Next.js frontend
├── packages/
│   ├── database/     # Prisma schema and client
│   └── trpc/        # tRPC router and types
└── scripts/
    └── create-database.sh        # Database setup script

About

Starter Kit Turbo Monorepo - Express, Next.js, tRPC, Prisma (Postgresql)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published