Skip to content

Latest commit

 

History

History
73 lines (58 loc) · 2.08 KB

README.md

File metadata and controls

73 lines (58 loc) · 2.08 KB

Auto Cards

Automatic Card Battle Game

Play Online: auto-cards.com

Local development

pnpm install
pnpm db:push
pnpm dev

Setup your Admin User WITHOUT discord or email:

Setup for production

  • Create .env.local
  • Generate Auth Secret
    • run npx auth secret
    • copy AUTH_SECRET to .env.local
  • Connect DB
    • Create Turso Database
    • DB_URL: looks like libsql://your-app.you.turso.io
    • DB_TOKEN: looks like a JWT eyeyey
  • Connect OAuth
    • Create Discord Developer App
    • Goto OAuth2
    • AUTH_DISCORD_ID: Copy Client ID
    • AUTH_DISCORD_SECRET: Reset Secret
    • Add Redirects:
    • http://localhost:3000/api/auth/callback/discord
    • https://your-app.com/api/auth/callback/discord
  • Setup Email
  • Setup AI
  • pnpm db:push to push schema to DB

Libraries

Update Party Starter

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!