Full-Stack Travel App With Temporal
Prompts for creating a full-stack travel webapp with Temporal to manage state.
1. API
I'm building a demo web app for tracking which cities a person has visited.
As a first step, can you build me an API that has endpoints like:
- GET /cities - lists the available cities
- GET /cities/:city - returns info about a city
- POST /plans - creates a 'plan' to visit a city
- GET /plans - lists plans
- GET /plans/:plan - returns info about a plan
- POST /plans/:plan/visited: marks that the plan was completed (the city was visited)
Each city should have a 'city name' and a 'greeting message'.
Cities:
Stockholm: "Hello from Stockholm"
Copenhagen: "Hello from Copenhagen"
Helsinki: "Hello from Helsinki"
Oslo: "Hello from Oslo"
Hard-code the city info for now, and store the plans in memory - we'll hook up a
database and building a UI later.2. Database
3. Frontend
4. Temporal

Last updated

