This site is a demo application written in TypeScript. The entire app was created originally from an ERD diagram and natural language prompts using Copilot. The frontend was created in the same way, using some of the design ideas in the design folder.
The hero image and product images were created by prompting ChatGPT!
The system is a modern supply chain management application built using TypeScript, comprising a backend REST API and a React frontend. It's designed to demonstrate Copilot capabilities using a fairly typical architecture with a little complexity, but not enough to derail demos!
- Express.js API with RESTful endpoints for all entities
- SQLite persistence using a lightweight repository pattern
- Schema migrations and seed data managed via SQL files
- Swagger/OpenAPI documentation integration
- Entity models with proper relationships following an ERD diagram
- React 18+ with TypeScript
- Vite build tool for fast development
- Tailwind CSS for UI styling
- Docker/Docker Compose for containerization
- Optional Bicep + GitHub Actions plan for Azure deployment
erDiagram
Headquarters ||--o{ Branch: has
Branch ||--o{ Order: placed_at
Order ||--o{ OrderDetail: contains
OrderDetail ||--o{ OrderDetailDelivery: fulfilled_by
OrderDetail }|--|| Product: references
Delivery ||--o{ OrderDetailDelivery: includes
Supplier ||--o{ Delivery: provides
flowchart TD
subgraph "Frontend"
F[React App] --> FC[React Components]
FC --> FT[TypeScript]
FC --> FCSS[Tailwind CSS]
F --> FV[Vite Build Tool]
end
subgraph "Backend"
B[Express.js API] --> BR[REST Routes]
BR --> BM[Entity Models]
B --> BS[Swagger/OpenAPI]
B --> BO[TAO Observability]
B --> R[Repositories]
end
subgraph "Data"
D[(SQLite DB\napi/data/app.db)]
end
R <--SQL queries--> D
F <--REST API--> B
- Complete REST APIs for all supply chain entities
- SQLite-backed persistence with foreign keys and indexed queries
- Declarative migrations (docs/sql/migrations) and deterministic seed data
- Detailed OpenAPI documentation, generated by Copilot
- Modern React UI with responsive design, generated by Copilot using images
- Containerization for consistent deployment, generated by Copilot
-
Database: SQLite (file located at
api/data/app.dbby default; configurable viaDB_FILE) -
Access: thin repository layer that maps camelCase models to snake_case columns
-
Migrations: SQL scripts in
api/sql/migrationsexecuted in order and tracked in amigrationstable -
Seeding: ordered SQL scripts in
api/sql/seedto bootstrap demo data -
Test mode: in-memory database (
:memory:) for fast and isolated tests
See the dedicated guide: docs/sqlite-integration.md.