You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorial/markdown/mobile/couchbase-edge-server/edge-server-demo-meal-app.md
+83-2Lines changed: 83 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
# frontmatter
3
3
path: "/tutorial-couchbase-edge-server-demo"
4
-
title: "Explore Couchbase Edge Server with seat back application"
4
+
title: "Building an Offline-First Airline Meal Ordering App with Couchbase Edge Server"
5
5
short_title: "Couchbase Edge Server Demo"
6
6
description:
7
7
- Learn how to set up Couchbase Edge Server
@@ -24,7 +24,32 @@ length: 45 Mins
24
24
25
25
## Introduction
26
26
27
-
The sample React-based web application simulates an airline seat back application, that allows users in business and economy class to place their in-flight meal orders. The sample app leverages **Couchbase Edge Server** for data storage and processing at the edge, simulating a disconnected offline experience within an aircraft. The seatback web app accesses Edge Server via a RESTful interface. When there is Internet connectivity, the **Edge Server** syncs data with remote Capella App Services.
27
+
Imagine you’re on a 10-hour international flight. Passengers want to order meals, but the plane has unstable internet connection. How do you ensure orders are captured reliably and synced to the cloud? This is where Couchbase Edge Server shines.
28
+
29
+
In this tutorial, you’ll build a flight meal ordering system that:
30
+
31
+
- Works offline using Edge Server, a lightweight database for edge devices.
32
+
- Syncs seamlessly with the cloud via Capella App Services when connectivity resumes.
33
+
- Uses a React frontend to simulate seatback screens for business/economy classes.
34
+
35
+
What You’ll Learn?
36
+
37
+
- Why Edge Server solves offline data challenges
38
+
- How to sync edge data with the cloud
39
+
- How to design APIs for offline resilience //fix
40
+
41
+
## Architecture Overview
42
+
43
+
- Couchbase Edge Server
44
+
- Lightweight (~10MB) database for edge devices (e.g., aircraft servers).
45
+
- Provides REST APIs for web/mobile apps.
46
+
- Stores data locally and syncs with the cloud when online.
47
+
- Capella App Services
48
+
- Manages secure sync between Edge Server and the cloud.
49
+
- Acts as the "source of truth" for meal inventory and orders.
50
+
- React Web App
51
+
- Simulates seatback ordering screens.
52
+
- Talks directly to Edge Server via REST.
28
53
29
54
## Setup & Technology Stack
30
55
@@ -145,6 +170,62 @@ Follow these steps to set up and run the application locally on the same machine
0 commit comments