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
+34-26Lines changed: 34 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,10 @@ In this tutorial, you’ll build a flight meal ordering system that:
34
34
35
35
What You’ll Learn?
36
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
37
+
- How to set up Couchbase Edge Server on your local machine.
38
+
- How to configure it to synchronize data with a remote Capella App Services instance.
39
+
- How to deploy and run a React-based seatback meal-ordering web application that communicates with Couchbase Edge Server over a REST API.
40
+
- Observe how the application continues to function and store data offline even when there is no internet connectivity, and then automatically syncs changes once the connection returns.
40
41
41
42
## Architecture Overview
42
43
@@ -170,33 +171,27 @@ Follow these steps to set up and run the application locally on the same machine
170
171
EDGE_SERVER_BASE_URL="https://localhost:60000"
171
172
```
172
173
173
-
***Explore the Code**:
174
-
175
-
Fetching Meal Options (Business Class):
174
+
***Edge Server REST Calls in React**:
175
+
In the web app, you might see code making REST requests to the Edge Server base URL. For example, to fetch the meal of business class:
By walking through this tutorial, you have explored not just how to run the application, but also why Couchbase Edge Server plays a crucial role in offline-first scenarios. You have seen how integrating Edge Server on the aircraft side and using Capella App Services allows you to elegantly synchronize data once connectivity is restored. You also saw how the seatback React app, using the Edge Server’s REST API, can continue to function even without an internet connection.
0 commit comments