Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days 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 (9 months ago)
- Default Branch: develop
- Last Pushed: 2024-04-13T01:40:10.000Z (9 months ago)
- Last Synced: 2024-11-08T16:12:28.878Z (about 2 months 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 |
| -------------------------- | -------------------------------- |
| ![login](public/users.png) | ![users admin](public/login.png) |## 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)
![email](public/email.png)