Sellzy is four apps plus a database. Each one can live wherever you like. This is the setup most stores use:
| Part | Folder | Host | Guide |
|---|---|---|---|
| Database | n/a | MongoDB Atlas (free tier) | Database |
| API | apps/api |
Render, Railway, a VPS or Vercel | Deploy the API |
| Storefront | apps/web |
Vercel | Deploy to Vercel |
| Admin + seller panel | apps/admin |
Vercel or Netlify | Deploy to Vercel |
| Mobile app | apps/mobile |
App Store and Google Play via Expo EAS | Deploy the mobile app |
Order of steps
- Database. Create an Atlas cluster and copy its connection string.
- API. Deploy it, set its environment variables and note its address, for example
https://api.yourstore.com. - Data. From your computer, run
pnpm seed:prodagainst the live database once. - Storefront and admin. Deploy both with
NEXT_PUBLIC_API_URLandVITE_NEXT_PUBLIC_API_URLset to the API address. - Domains and CORS. Add your domains and tell the API about them. See Domains and CORS.
- Services. Switch Stripe to live mode, add the live webhook, set up email and uploads.
- Check. Work through the go-live checklist.
Tip
Deploy the API first. The storefront and admin need its address when they build.
