feat(auth): add better-auth core wiring for admin and db
This commit is contained in:
@ -38,9 +38,12 @@ bun install
|
||||
cp .env.example .env
|
||||
```
|
||||
|
||||
Set `BETTER_AUTH_SECRET` before production use.
|
||||
|
||||
3. Generate Prisma client and run migrations:
|
||||
|
||||
```bash
|
||||
bun run db:auth:generate
|
||||
bun run db:generate
|
||||
bun run db:migrate
|
||||
bun run db:seed
|
||||
@ -54,6 +57,7 @@ bun run dev
|
||||
|
||||
- Web: http://localhost:3000
|
||||
- Admin: http://localhost:3001
|
||||
- Admin login: http://localhost:3001/login
|
||||
|
||||
## Useful scripts
|
||||
|
||||
@ -72,6 +76,7 @@ bun run dev
|
||||
- `bun run check`
|
||||
- `bun run format`
|
||||
- `bun run db:generate`
|
||||
- `bun run db:auth:generate`
|
||||
- `bun run db:migrate`
|
||||
- `bun run db:push`
|
||||
- `bun run db:studio`
|
||||
|
||||
Reference in New Issue
Block a user