Getting started
Zero to running in eight steps.
Requirements
You need Node 20+, a Postgres database and a Stripe account.
node -v # v20 or newerUnzip
Unzip the download and move into the folder.
unzip shipember.zip -d my-app
cd my-appInstall
Install dependencies.
npm installSet up .env
Copy the example file. Add your database URL, auth secrets and Stripe keys.
cp .env.example .envMigrate and seed
Create the tables, then add seed data.
npx prisma migrate dev
npx prisma db seedStripe webhook
Forward events to your local server with the Stripe CLI. Copy the signing secret it prints into .env.
stripe listen --forward-to localhost:3000/api/webhooks/stripeRun locally
Start the dev server and open localhost:3000.
npm run devDeploy to Vercel
Push to GitHub, import the repo in Vercel, and add the same environment variables. Then add your live webhook URL in the Stripe dashboard.
npx vercel --prod