- add a .env file with the variables listed in the guide above
- Install packages
pnpm install- Run the dev server
pnpm devTo activate payments:
- Create at least one product with a priceId on your Stripe dashboard.
- Add your Environment variables to
.env.example. You can find your webhook signing key by running the stripe CLI with:
stripe listen- Run your webhook listener to receive requests from the stripe checkout from a user
stripe listen --forward-to localhost:3000/api/webhookAdd a local postgres database for testing.
You can do this with docker (below) or manually.
# Pull and run PostgreSQL in one command
docker run --name my-postgres -e POSTGRES_PASSWORD=mypassword -p 5432:5432 -d postgres
# Connect to create your database
docker exec -it my-postgres psql -U postgres -c "CREATE DATABASE myapp;"
- Update your env vars in your
.envto match your local Postgres database.
npx @better-auth/cli@latest generate --y
Sign in with Google guide: https://tomdekan.com/articles/google-sign-in-nextjs