Local setup
- Copy
.env.exampleto.env.localand configureDATABASE_URL,BETTER_AUTH_SECRET,BETTER_AUTH_URL, andBLOB_READ_WRITE_TOKEN. - Install dependencies with
npm install. - Create the schema with
npm run db:migrate. - Set
INITIAL_ADMIN_EMAIL,INITIAL_ADMIN_NAME, andINITIAL_ADMIN_PASSWORD, then runnpm run db:seed. - Start with
npm run devand openhttp://localhost:3000.
The public storefront uses the bundled catalog and local /public/products images when DATABASE_URL is absent. Authentication, checkout, account, and admin requests require PostgreSQL and report a configuration error until it is configured.
Source captured: 2026-10-11