Full-stack e-commerce platform for a local farm/store to sell fresh produce directly to customers through online ordering, including an admin panel for product and order management.
- Product catalog with dual-unit pricing (kg/unit)
- Shopping cart with localStorage persistence
- Low stock indicators
- Category filtering
- Mobile-responsive design
- Order submission via contact form
- Product & category management (CRUD)
- Stock tracking & price management
- In-line editing
- Secure authentication
- Order management
Frontend
- Next.js 15.5.2 (App Router, Server Components, Server Actions)
- React 18 with TypeScript
- Tailwind CSS 3.3
- SWR for data fetching
- React Context for state management
Backend
- Supabase (PostgreSQL + Authentication)
- Next.js Server Actions
- Row Level Security (RLS)
-
Install dependencies:
npm install
-
Set up environment variables:
Copy
.env.exampleto.env.localand add your Supabase credentials. -
Run development server:
npm run dev
Available routes:
/mercado- Customer shop/admin- Admin dashboard/login- Admin authentication