Next.js, Prisma, TawilwindCSS, PostgreSQL, TypeScript, Docker
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
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
}