https://github.com/vonderklaas/next-prisma-postgresql-ts
This project is my experiments with "almost" T3 stack, running local database with Docker, trying out new Server components and more Next 13 features
https://github.com/vonderklaas/next-prisma-postgresql-ts
docker nextjs posgresql prisma tailwindcss typescript
Last synced: 5 months ago
JSON representation
This project is my experiments with "almost" T3 stack, running local database with Docker, trying out new Server components and more Next 13 features
- Host: GitHub
- URL: https://github.com/vonderklaas/next-prisma-postgresql-ts
- Owner: vonderklaas
- Created: 2023-02-03T15:08:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T15:12:59.000Z (about 3 years ago)
- Last Synced: 2025-03-03T21:51:35.487Z (12 months ago)
- Topics: docker, nextjs, posgresql, prisma, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 59.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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
}
```