Skip to content

gisete/farm-store

Repository files navigation

Farm Store - Local Produce E-Commerce Platform

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.

Next.js React TypeScript Supabase Tailwind CSS

Features

Customer Shop (/mercado)

  • 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

Admin Panel (/admin)

  • Product & category management (CRUD)
  • Stock tracking & price management
  • In-line editing
  • Secure authentication
  • Order management

Technology Stack

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)

Running Locally

  1. Install dependencies:

    npm install
  2. Set up environment variables:

    Copy .env.example to .env.local and add your Supabase credentials.

  3. Run development server:

    npm run dev
  4. Open http://localhost:3000

Available routes:

  • /mercado - Customer shop
  • /admin - Admin dashboard
  • /login - Admin authentication

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published