Pastry Ordering Website

A simple website where customers can browse and order pastries online.

Features

  • Browse pastry menu with images and descriptions
  • Add items to cart with quantity selection
  • Customer information form
  • Order submission and confirmation
  • Order management backend

Project Structure

  • frontend/ - Customer-facing ordering interface
  • backend/ - API endpoints and order management
  • shared/ - Common types and utilities

Getting Started

The main entry point is backend/index.ts which serves both the API and frontend files.

Database

Uses SQLite to store customer orders with the following schema:

  • Orders table with customer info and order details
  • JSON storage for order items

API Endpoints

  • GET / - Serves the main ordering page
  • POST /api/orders - Submit a new order
  • GET /api/orders - Get all orders (admin)