update IoT cloud demo (#876)
* update IoT APP store demo * update IoT app store apps * update IoT cloud demo document * [Cloud demo] mount app store between two dockers * [Cloud demo] update restart policy * [Cloud demo] update help page * [Cloud demo] update online demo address
This commit is contained in:
@ -1,36 +1,50 @@
|
||||
# IoT Application Store
|
||||
Wasm application management portal for WAMR
|
||||
|
||||
# Requirement
|
||||
Install django with pip3
|
||||
```
|
||||
pip3 install django
|
||||
```
|
||||
## Start the server
|
||||
|
||||
# Run
|
||||
1. Start wasm server
|
||||
### Using docker
|
||||
1. install docker and docker-compose
|
||||
``` bash
|
||||
sudo apt install docker.io docker-compose
|
||||
```
|
||||
|
||||
2. start
|
||||
``` bash
|
||||
docker-compose up
|
||||
```
|
||||
### Using commands
|
||||
> Note: must use python3.5. If you don't have python3.5 on your machine, had better using docker
|
||||
1. install the required package
|
||||
``` bash
|
||||
pip3 install django
|
||||
```
|
||||
|
||||
2. Start device server
|
||||
``` bash
|
||||
cd wasm_django/server
|
||||
python3 wasm_server.py
|
||||
```
|
||||
|
||||
2. Start IoT application management web portal
|
||||
```
|
||||
3. Start IoT application management web portal
|
||||
``` bash
|
||||
cd wasm_django
|
||||
python3 manage.py runserver 0.0.0.0:80
|
||||
```
|
||||
|
||||
3. Download WAMR runtime from [help](http://localhost/help/) page
|
||||
> NOTE: You need to start web server according to *step 2* before accessing this link!
|
||||
## Start the runtime
|
||||
1. Download WAMR runtime from [help](http://localhost/help/) page
|
||||
> NOTE: You need to start the server before accessing this link!
|
||||
|
||||
4. Start a WAMR runtime from localhost
|
||||
```
|
||||
2. Start a WAMR runtime from localhost
|
||||
``` bash
|
||||
chmod +x simple
|
||||
./simple
|
||||
```
|
||||
or from other computers
|
||||
```
|
||||
``` bash
|
||||
./simple -a [your.server.ip.address]
|
||||
```
|
||||
|
||||
# Online demo
|
||||
http://39.106.110.7/
|
||||
## Online demo
|
||||
http://82.156.57.236/
|
||||
|
||||
Reference in New Issue
Block a user