Keep all your recipes in one place.
digital-cookbook-flame.vercel.app
Frontend is deployed on Vercel.
Backend is deployed on Render.
You will need Node.js and Python installed on your machine.
cd Kokbok/backend
# Create and activate virtual environment
python -m venv venv
# Windows
.\venv\Scripts\activate
# Mac/Linux
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
# Start the server
python main.pyThe server will run at http://localhost:8000
Open a new terminal window:
cd frontend
npm install
npm run devThe app will run at http://localhost:5173
Create the following .env files before starting the project:
/backend/.env
SUPABASE_URL=your_supabase_url
SUPABASE_SERVICE_KEY=your_secret_service_role_key/frontend/.env.local
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_public_anon_key
VITE_API_URL=http://localhost:8000assets/– Images and static filescomponents/– React componentshooks/– Custom React hooks (e.g., form logic)RecipeForm/– Form components for creating/editing recipes
pages/– Page components (/new-recipe, /:category, /recipe/:category/:id)styles/– CSS and themesutils/– Helper functions (validation, form helpers)
main.py– API routes, CORS configuration, and Supabase connectionmodels.py– Pydantic models for incoming data validationrequirements.txt– Python dependencies
| Del | Teknik |
|---|---|
| Frontend | React, Vite, Tailwind CSS, Lucide |
| Backend | Python, FastAPI, Uvicorn |
| Database | Supabase (PostgreSQL) |
