Ocipe is made up of two independent services: a Django 5 + Django REST Framework backend that serves the API, and a React 19 + TypeScript + Vite frontend that consumes it. This guide walks you through getting both running on your machine so you can develop or self-host Ocipe locally.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/viet2811/ocipe/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites before you begin:
- Python 3.11 or higher
- Node.js 18 or higher
- A running PostgreSQL database (local or hosted)
- A Google Gemini API key (free tier is sufficient for AI autofill)
- A Render account (or any other host) if you plan to deploy rather than just run locally
Set up the backend
Move into the Next, create a The backend API will be available at
backend directory, create an isolated Python environment, and install all dependencies:.env file in the backend directory with the following variables:DJANGO_SECRET— a long, random string used by Django for cryptographic signing. Generate one withpython -c "import secrets; print(secrets.token_urlsafe(50))".POSTGRES_DB/POSTGRES_USER/POSTGRES_PASSWORD/POSTGRES_HOST— the connection details for your PostgreSQL database. All four are required;POSTGRES_HOSTis typicallylocalhostfor local development.GEMINI_API_KEY— your Google Gemini API key, used by the AI autofill feature to parse recipe URLs. Get a free key from Google AI Studio.
http://localhost:8000/api.Set up the frontend
Open a new terminal, move into the The frontend’s API base URL is hardcoded in The app does not read a The frontend will be available at
frontend directory, and install Node dependencies:src/api/axios.ts:VITE_API_BASE_URL environment variable — there is no .env file to create for the frontend. For local development you have two options:- Use the hosted API (recommended for front-end-only work): Leave
axios.tsunchanged. Your local frontend will talk to the production backend athttps://ocipe.onrender.com/api, which works out of the box. - Point to your local backend: Open
src/api/axios.tsand change thebaseURLtohttp://localhost:8000/api. Remember to revert or keep it out of version control before deploying.
http://localhost:5173.Open the app
Navigate to http://localhost:5173 in your browser. Register a new account, and you’re ready to start adding recipes, stocking your fridge, and planning your groceries.
Environment variables at a glance
Only the backend requires an.env file. The frontend has no environment variables — its API base URL is set directly in src/api/axios.ts (see Step 3).
Don’t want to run anything locally? The hosted version of Ocipe is available at https://ocipe.vercel.app — no setup required.