Full-Stack Travel App With Temporal
Full-Stack Travel App With Temporal
1. Couchbase
Setup Couchbase for a Nordic cities travel planner. Create two collections: main._default.cities and main._default.plans. 2. Build FastAPI
Build a FastAPI backend ready to connect to Couchbase and handle the following resources.
Cities: name, greeting
Plans: id, city, visited (boolean), created_atI have a Polytope-orchestrated app up and running, accessible through mcp tools. When you make a change, always check the logs for errors. The api and frontend have hot reload enabled. No need to restart containers manually.
Create these endpoints:
POST /cities - create a new city to visit
GET /cities - list all cities
GET /cities/:city - get specific city
POST /plans - create travel plan (returns plan with id)
GET /plans - list all plans
GET /plans/:id - get specific plan
POST /plans/:id/visited - mark plan as visited
All endpoints should read from and write to the Couchbase collections (main._default.cities and
main._default.plans). Couchbase is already running.3. Frontend
4. Temporal Workflow

Last updated

