Public
Like
QUEEN
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
index.ts
https://Sydneytonye--511936cc3f9311f0a54776b3cceeab13.web.val.run
A simple website where customers can browse and order pastries online.
- Browse pastry menu with images and descriptions
- Add items to cart with quantity selection
- Customer information form
- Order submission and confirmation
- Order management backend
frontend/
- Customer-facing ordering interfacebackend/
- API endpoints and order managementshared/
- Common types and utilities
The main entry point is backend/index.ts
which serves both the API and frontend files.
Uses SQLite to store customer orders with the following schema:
- Orders table with customer info and order details
- JSON storage for order items
GET /
- Serves the main ordering pagePOST /api/orders
- Submit a new orderGET /api/orders
- Get all orders (admin)