Epiccotn is a modern, high-performance e-commerce platform built with Next.js, Supabase, and Stripe. It features a sleek UI, real-time data sync, and a robust admin dashboard.
Follow these instructions to get the project up and running on your local machine.
Ensure you have the following installed:
git clone <your-repo-url>
cd Osyndo
npm install
Create a .env.local file in the root directory and add your credentials:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_project_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_key
STRIPE_SECRET_KEY=your_stripe_secret_key
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY=your_stripe_pub_key
This project uses several SQL scripts to set up the database schema and policies. Go to your Supabase projectβs SQL Editor and run the following scripts in order:
supabase_schema.sql - Creates the core tables (products, categories, orders).supabase_setup_v2.sql - Additional configuration and schema improvements.supabase_admin_policies.sql - Sets up Row Level Security (RLS) for admin access.supabase_rls_public.sql - Sets up public read access for storefront data.supabase_seed_products.sql - Populates the database with initial product data.supabase_auth_triggers.sql - (Optional) Sets up automated user profile creation.npm run dev
Open http://localhost:3000 in your browser to see the result.
/app: Next.js routes and API endpoints./components: Reusable UI components (Hero, ProductGrid, Cart, etc.)./lib: Helper functions, Supabase client, and utility types./public: Static assets (images, icons)./scripts: Custom scripts for data migration or seeding.*.sql: Database migration and setup scripts.The easiest way to deploy is using Vercel:
This project is licensed under the MIT License.