A Next.js template using Prisma as the ORM.
pnpm installCreate a .env file with your database connection:
echo 'POSTGRES_PRISMA_URL=postgres://postgres:postgres@localhost:5432/currencies?schema=public' > .envdocker compose up -d postgrespnpm db:seedpnpm devThe app will be available at http://localhost:3000.
| Command | Description |
|---|---|
pnpm dev |
Start the development server |
pnpm build |
Build for production |
pnpm db:seed |
Push schema and seed the database |
pnpm db:studio |
Open Prisma Studio to inspect the database |
To run the full stack with Docker:
docker compose up -dThis starts both PostgreSQL and the Next.js app (once we have a Dockerfile)