jgatjens / t3stack

t3 with next-auth (emailProvider), internationalization, drizzle, shadcn, custom roles and resend (react.email)

Home Page:https://t3stack-dun.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FrontApp e

This is a t3stack project bootstrapped with create-t3-app.

shadcn add components

#example
npx shadcn-ui@latest add button

Docker (db and pgadmin)

# creates docket containers
docker-compose up --build -d

# if you use pgadmin from docker the Host name/Adress would be the postgres container_name:
# example: t3stack_postgres

# add tables to db and generates prisma client
npm run db:push

# Create a dump backup
# -U username
# -d database
# -h hostname
# --data-only only data
pg_dump -h {POSTGRES_HOST} -U {POSTGRES_USER} -d {POSTGRES_DB} --data-only > ./db/dev_backup.dump

# clear database data
docker exec -i frontapp_postgres psql -U postgres -d frontapp < ./db/dev_clear_data.sql

# restore database on local docker
docker exec -i frontapp_postgres psql -U postgres -d frontapp < ./db/dev_backup.dump

About

t3 with next-auth (emailProvider), internationalization, drizzle, shadcn, custom roles and resend (react.email)

https://t3stack-dun.vercel.app


Languages

Language:TypeScript 94.8%Language:JavaScript 3.2%Language:CSS 2.1%