Skip to content

Hadas2143/Recipe-site-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Recipe Website (React + Tailwind + FastAPI + SQLite)

This project includes:

  • A responsive React frontend (Tailwind CSS)
  • A Python FastAPI backend
  • SQLite database seeded from a mock JSON file

Prerequisites

  • Node.js (for the frontend)
  • Python 3.9+ (for the backend)

Run the backend

  1. Open a terminal in backend/
  2. Install: pip install -r requirements.txt
  3. Start: uvicorn app:app --reload --port 8000

On first run, the backend creates recipes.db and seeds it from data/mock_recipes.json.

Run the frontend

  1. Open a terminal in frontend/
  2. Install: npm install
  3. Start: npm run dev

Then open the URL shown in the terminal (usually http://localhost:5173).

API endpoints

  • GET /api/recipes
  • GET /api/recipes?category=Breakfast
  • GET /api/recipes/{recipe_id}
  • GET /api/categories

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors