Skip to content

This project is my experiments with "almost" T3 stack, running local database with Docker, trying out new Server components and more Next 13 features

Notifications You must be signed in to change notification settings

vonderklaas/next-prisma-postgresql-ts

Repository files navigation

SETUP

Next.js, Prisma, TawilwindCSS, PostgreSQL, TypeScript, Docker

Docker Flow

Install Docker (We going to have database in a container)

Check docker-compose.yml file, and .env file to check our configuration

Run our container

docker compose up

Stop our container

docker compose down

Check docker config

docker compose config

Prisma Flow

Quick Documentation - https://www.prisma.io/docs/getting-started/quickstart

After updating url = env("DATABASE_URL")

Migrate

npx prisma migrate dev

Create a "example" model for migration

model Developer {
  id Int @id @default(autoincrement())
  name String
  lastname String
  job String
}

About

This project is my experiments with "almost" T3 stack, running local database with Docker, trying out new Server components and more Next 13 features

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published