diff README @ 264:6b98ac45aaee am-2

documented how to compile and execute WASM samples
author am@osimis.io
date Tue, 21 Aug 2018 16:36:01 +0200
parents 84844649a8fd
children 30dc6e383b0b
line wrap: on
line diff
--- a/README	Tue Jul 17 18:28:12 2018 +0200
+++ b/README	Tue Aug 21 16:36:01 2018 +0200
@@ -87,7 +87,24 @@
 http://book.orthanc-server.com/developers/stone.html
 
 Stone of Orthanc comes with several sample applications in the
-"Samples" folder. These samples use SDL.
+"Samples" folder. These samples can be compiled into Web Assembly
+or into native SDL applications.
+
+to build the WASM samples:
+```
+cd ~/orthanc-stone/Platforms/Wasm
+./build-wasm.sh
+```
+
+to serve the WASM samples:
+```
+# launch an Orthanc listening on 8042 port:
+Orthanc
+
+# launch an nginx that will serve the WASM static files and reverse proxy Orthanc
+sudo nginx -p $(pwd) -c nginx.local.conf
+```
+Now, you can open the samples in http://localhost:9977
 
 
 Licensing