Product Name:
+Current Version:
+ +diff --git a/test-tools/IoT-APP-Store-Demo/README.md b/test-tools/IoT-APP-Store-Demo/README.md new file mode 100644 index 00000000..fe69e144 --- /dev/null +++ b/test-tools/IoT-APP-Store-Demo/README.md @@ -0,0 +1,34 @@ +# IoT Application Store +Wasm application management portal for WAMR + +# Requirement +Install django with pip3 +``` +pip3 install django +``` + +# Run +1. Start wasm server + ``` + cd wasm_django/server + python3 wasm_server.py + ``` + +2. Start IoT application management web portal + ``` + 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! + +4. Start a WAMR runtime from localhost + ``` + ./simple + ``` + or from other computers + ``` + ./simple -a [your.server.ip.address] + ``` + diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/db.sqlite3 b/test-tools/IoT-APP-Store-Demo/wasm_django/db.sqlite3 new file mode 100755 index 00000000..211576ca Binary files /dev/null and b/test-tools/IoT-APP-Store-Demo/wasm_django/db.sqlite3 differ diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/__init__.py b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/__init__.py new file mode 100755 index 00000000..e69de29b diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/admin.py b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/admin.py new file mode 100755 index 00000000..8c38f3f3 --- /dev/null +++ b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/apps.py b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/apps.py new file mode 100755 index 00000000..d43cc4b6 --- /dev/null +++ b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class DevicesConfig(AppConfig): + name = 'devices' diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/migrations/__init__.py b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/migrations/__init__.py new file mode 100755 index 00000000..e69de29b diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/models.py b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/models.py new file mode 100755 index 00000000..71a83623 --- /dev/null +++ b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/test-tools/IoT-APP-Store-Demo/wasm_django/devices/templates/application.html b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/templates/application.html new file mode 100644 index 00000000..55852977 --- /dev/null +++ b/test-tools/IoT-APP-Store-Demo/wasm_django/devices/templates/application.html @@ -0,0 +1,152 @@ + +{% load static %} + + + +
+ + +
+
+
app is downloading now
+Product Name:
+Current Version:
+ +List of Installed Apps:
+ +Product Name:
+Product Version:
+Preloaded Apps
+ ++ 1. Download a simple runtime (build for ubuntu 16.04 64 bits, other platforms please build + from the source code) +
+
+ 2. In the terminal: cd ~/Download && ./simple -a 39.106.110.7
+
Before running the UI-enabled runtime, please install some required softwares:
+sudo apt-get install libsdl2-2.0-0:i386
For more details please refer to this guide +
+cd ~/Download && ./wasm_runtime_wgl -a 39.106.110.7
+ 3. Return to device page, find your device according to the IP address and click it, you + will enter application installation page +
++ 4. In the application installation page, click the Install Application button, and chose an + app to install. (The "ui_app" is only for UI_enabled_runtimes, simple runtime can't install + this app) +
++ 5. If you want to upload a new application, go to App Store page, choose a file and click + upload +
++ Go Back + Download + simple_runtime + Download + UI_enabled_runtime +
+Join us and build a powerful and interesting world for embedded + devices!
+ + ++ View + on GitHub +
+
+
+
The devices
+
+