Backend

Hono-based API server for the Meals recipe management application.

Entry Point

index.ts - Main HTTP val entry point

Structure

backend/
├── index.ts          # Hono app setup and route mounting
├── database/
│   ├── migrations.ts # SQLite table schemas
│   └── queries.ts    # Database query functions
└── routes/
    └── *.ts          # API route modules

API Endpoints

Health Check

  • GET /api/health - Returns server status

Recipes (planned)

  • GET /api/recipes - List all recipes
  • GET /api/recipes/:id - Get recipe details
  • POST /api/recipes - Create recipe
  • DELETE /api/recipes/:id - Delete recipe

Recipe Ingestion (planned)

  • POST /api/ingest - Extract recipe from URL using AI

Shopping Lists (planned)

  • POST /api/shopping-list - Generate shopping list from recipes