You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by hu...@apache.org on 2019/07/03 02:34:49 UTC

[dubbo-samples] branch master updated: Add README for nacos sample

This is an automated email from the ASF dual-hosted git repository.

huxing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 7a4f25e  Add README for nacos sample
7a4f25e is described below

commit 7a4f25ea7911966be423f44948995805c0b1939e
Author: Huxing Zhang <hu...@gmail.com>
AuthorDate: Wed Jul 3 10:33:56 2019 +0800

    Add README for nacos sample
---
 dubbo-samples-nacos/README.md | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/dubbo-samples-nacos/README.md b/dubbo-samples-nacos/README.md
new file mode 100644
index 0000000..0ec8b31
--- /dev/null
+++ b/dubbo-samples-nacos/README.md
@@ -0,0 +1,18 @@
+## Steps to run the samples
+
+1. Download nacos, go to https://github.com/alibaba/nacos/releases, and download the latest binary file.
+
+2. Start Nacos locally
+
+  ```
+  cd bin
+  ./startup.sh -m standalone
+  ```
+  
+3. Run Dubbo provider demo `org.apache.dubbo.samples.ProviderBootstrap.main`
+
+4. Run Dubbo consumer demo `org.apache.dubbo.samples.ConsumerBootstrap.main`, verify that standard ouput has the following content on the consumer side:
+
+   ```
+   result: hello, nacos
+   ```
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org