docs/developer/storefront/nextjs/quickstart.mdx
The Spree Storefront is a production-ready, headless e-commerce storefront built with Next.js 16, React 19, and the Spree Commerce API v3.
Fork the repository on GitHub, then clone your fork:
git clone https://github.com/YOUR_USERNAME/storefront.git
cd storefront
npm install
This gives you a full copy you can customize freely while still being able to pull upstream updates.
git clone https://github.com/spree/storefront.git
cd storefront
npm install
Copy the environment file:
cp .env.local.example .env.local
Update .env.local with your Spree API credentials:
SPREE_API_URL=http://localhost:3000
SPREE_PUBLISHABLE_KEY=your_publishable_api_key_here
See Deployment for all optional environment variables (Sentry, GTM, etc.).
npm run dev
Open http://localhost:3001 in your browser.
npm run build
npm start
See the Deployment guide for Vercel, Docker, and other hosting options.