https://github.com/jgatjens/frontapp
Nextjs + Drizzle + Postgress + Next Auth + TRPC
https://github.com/jgatjens/frontapp
docker-compose drizzle-orm next14 nextauth postgress trpc
Last synced: 3 months ago
JSON representation
Nextjs + Drizzle + Postgress + Next Auth + TRPC
- Host: GitHub
- URL: https://github.com/jgatjens/frontapp
- Owner: jgatjens
- Created: 2024-04-12T22:46:34.000Z (about 2 years ago)
- Default Branch: develop
- Last Pushed: 2024-04-13T01:40:10.000Z (about 2 years ago)
- Last Synced: 2025-01-01T11:41:45.437Z (over 1 year ago)
- Topics: docker-compose, drizzle-orm, next14, nextauth, postgress, trpc
- Language: TypeScript
- Homepage:
- Size: 1.13 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template FrontApp
- [Next.js](https://nextjs.org)
- [NextAuth.js](https://next-auth.js.org)
- [Drizzle](https://orm.drizzle.team/)
- [shadcn](https://ui.shadcn.com/)
- [tRPC](https://trpc.io)
- [Postgres](https://tailwindcss.com)
- [lucide react](https://lucide.dev/guide/packages/lucide-react)
## Features
- Example login form
- Login with email (using google personal account)
- TRPC react server components
- Example how to handle CRUD (admin users)
| Users Admin | Login |
| -------------------------- | -------------------------------- |
|  |  |
## shadcn add components
```bash
#example
npx shadcn-ui@latest add button
```
## Docker (db and pgadmin)
```bash
# 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: frontapp_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
```
## React Template
[Frontapp Email Repo](https://github.com/jgatjens/frontapp.email)
