FullStack-Flow /
shop-stack
A type-safe, TanStack-powered full-stack e‑commerce starter for modern web shops.
Loading repository data…
RSR-Technologies / repository
A type-safe, TanStack-powered full-stack e‑commerce starter for modern web shops.
ShopStack is a production-ready foundation for a marketplace-style commerce platform that combines a storefront, vendor workspace, and admin console into one codebase. It emphasizes a modern React 19 UI, file-based routing, and a type-safe, server-function-first approach to backend logic.
It is designed for three primary audiences:
The project features a complete UI structure with authentication and vendor onboarding wired to the database, using mock data for some management pages to showcase layouts while backend modules are completed.
/api/auth/* using Better Auth.Follow these steps to set up the project locally on your machine.
Make sure you have the following installed on your machine:
git clone https://github.com/FullStack-Flow/shop-stack.git
cd shop-stack
Install the project dependencies using Bun:
bun install
Create a new file named .env in the root of your project and add the following content:
DATABASE_URL=postgres://USER:PASSWORD@HOST:PORT/db
BETTER_AUTH_SECRET=replace-with-strong-secret
VITE_BETTER_AUTH_URL=http://localhost:3000
NODE_ENV=development
# Production URL
BETTER_AUTH_URL=https://your-production-domain.com
# Social Auth (Optional)
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
# SMTP (Brevo Example)
BREVO_SMTP_SERVER=smtp-relay.brevo.com
BREVO_SMTP_PORT=587
BREVO_SMTP_LOGIN=your-brevo-login
BREVO_SMTP_PASSWORD=your-brevo-password
Run the following commands to generate migrations, push them to the database, and seed initial data:
bun run db:generate
bun run db:push
bun run db:seed
bun run dev
Open http://localhost:3000 in your browser to view the project.
The start script runs server.ts, a Bun-based production server that serves the built TanStack Start output.
bun run build
bun run start
bun install and ensure tests and linting pass.Selected from shared topics, language and repository description—not editorial ratings.
FullStack-Flow /
A type-safe, TanStack-powered full-stack e‑commerce starter for modern web shops.