Automatic Card Battle Game
Play Online: auto-cards.com
pnpm install
pnpm db:push
pnpm dev
Setup your Admin User WITHOUT discord or email:
- Goto http://localhost:3000/admin/users
- Click "Create User"-Button
- Fill out form and submit
- Toggle "Admin"-Switch
- Click "Login as"-Button
- Create .env.local
- Generate Auth Secret
- run
npx auth secret
- copy
AUTH_SECRET
to .env.local
- run
- Connect DB
- Create Turso Database
DB_URL
: looks like libsql://your-app.you.turso.ioDB_TOKEN
: looks like a JWT eyeyey
- Connect OAuth
- Create Discord Developer App
- Goto OAuth2
AUTH_DISCORD_ID
: Copy Client IDAUTH_DISCORD_SECRET
: Reset Secret- Add Redirects:
http://localhost:3000/api/auth/callback/discord
https://your-app.com/api/auth/callback/discord
- Setup Email
- Resend
EMAIL_FROM
: [email protected]AUTH_RESEND_KEY
: your resend api key
- Setup AI
LAUNCHPAD_IMAGES
: Teampilot Public Launchpad Id
pnpm db:push
to push schema to DB
- Next.js
- Tailwind CSS
- pnpm
- shadcn/ui
- @teampilot/sdk
- drizzle
- Auth.js
- @sodefa/next-server-context
- Vercel AI SDK
This project was bootstrapped with party-starter.
You can get the latest changes from the template by running:
git remote add template https://github.com/rechenberger/party-starter.git
git fetch --all
git merge template/main --allow-unrelated-histories
You might have to resolve a few merge conflicts, but that's it!