Framework: Tanstack Start
Router: Tanstack Router
# 1. Install dependencies
pnpm install
# 2. Run the app
pnpm devTo generate the database schema, run the following command:
pnpm dlx @better-auth/cli generate --output ./src/db/schema.tsGenerate migration file:
pnpm db:generateApply migrations to database:
pnpm db:migrateTo create the first user, run the following command:
curl -X POST -H "Content-Type: application/json" \
-d '{"email":"a@b.com","name":"name","password":"password"}' \
http://localhost:3000/api/auth/sign-up/email