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
@@ -19,3 +19,29 @@ Quick demo application comes with port-forward configured. After demo has succes
19
19
20
20
:::
21
21
22
+
## Introduction to the bookinfo application
23
+
24
+
Bookinfo is a typical microservice architecture application, which derives from Istio samples(https://github.com/istio/istio/tree/master/samples/bookinfo). However, we commit some changes to demonstrate nocalhost better. Here are some main changes we have made:
25
+
26
+
- Simplifying different version of reviews service to one version. Nocalhost does not target on how to manage service traffic or canary deployment.
27
+
- Splitting source codes from mono-repo into five independent repositories. In fact, diffrent microservices are developed by diffrent teams with different access rules.
28
+
- Switching the framework of reviews service to spring-boot. Everyone loves spring-boot.
29
+
- Configuring GitHub Action for every microservice to automatically build Docker images.
30
+
- Adding a .nocalhost directory to support development with nocalhost.
31
+
32
+
This demo application consists of the following 5 services:
Every service has its own program language and runtime environment. All of them have been configured to use docker as the container runtime, you can find Dockerfile in their corresponding repositories.
41
+
42
+
The microservices' structure of bookinfo is shown by the following image:
Copy file name to clipboardExpand all lines: docs/guides/hot-reload.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,4 +99,6 @@ containers:
99
99
100
100
```
101
101
102
+
## What's Next?
102
103
104
+
Now you have understood what DevMode is and how it works. Nocalhost supports a lot of configurations that control the actions when Nocalhost enter DevMode. If you are interested in Nocalhost configurations, you can check [CONFIGURATION](https://nocalhost.dev/docs/config/config-en).
@@ -141,7 +141,7 @@ In our `bookinfo` demo, we've already set the port-forward to 39080:9080, which
141
141
142
142
### Change the code
143
143
144
-
**1.** Modify code in `productpage.py` and see change in web browser. **Do not** forget to save your change.
144
+
**1.** Modify code in `productpage.py` and see change in web browser. Find the `getProducts` function in line 379 and change the `'title'` of the return value from `'The Comedy of Errors'` to `'Hello Nocalhost'`. **Do not** forget to save your change.
145
145
146
146
**2.** Refresh the web browser and see the code change
147
147
@@ -154,6 +154,10 @@ In our `bookinfo` demo, we've already set the port-forward to 39080:9080, which
154
154
155
155
## What's Next?
156
156
157
+
Now you are ready to develop with Nocalhost. But if you still want more details about Nocalhost, you can consult [USER GUIDES](https://nocalhost.dev/docs/guides/manage-cluster), or if you are a team leader, then you can try [Nocalhost Server](https://nocalhost.dev/docs/server/server-overview) and understand how Nocalhost can improve your team's efficiency.
158
+
159
+
You can also:
160
+
157
161
- Refer to Nocalhost's [Introduction](./introduction)
Copy file name to clipboardExpand all lines: docs/server/nh-dep.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,3 +6,6 @@ Service dependencies can be defined through `services[*].dependLabelSelector` in
6
6
7
7
**`Nocalhost Dep`** will inject an `initContainer` into the container when deploying an application. The `initContainer` will ensure that the services it depends on run successfully and then create the related container.
8
8
9
+
## What's Next?
10
+
11
+
You have finished Nocalhost Server section. You can use Nocalhost to accelerate your team's development process. But we recommend you to read the [Best Prictices](https://nocalhost.dev/docs/practice/cloud/k8s-compatible) section before using Nocalhost.
0 commit comments