Skip to content
/ WATT Public
forked from Samsung/WATT

A Web Assembly Translation Toolkit (WATT), a new Web Assembly (WASM) application authoring tool that allows developers to create a WASM based library easily and use it to create WASM based applications.

License

Notifications You must be signed in to change notification settings

singa2000/WATT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WATT (WebAssembly Translation Toolkit)

License Build Status

WATT is server-based WebAssembly IDE.

If you want to contribute code, please check the contribution guidelines.

Prerequisites

Optional dependencies

  1. Tizen SDK for building .wgt packages
    • Install Tizen SDK
    • Install Tizen SDK Native CLI development packages
      • For IDE Tizen SDK installer use Tizen Package Manager GUI and install Native CLI from Tizen SDK tools
      • For CLI Tizen SDK installer use package-manager-cli.bin in TIZEN_SDK_PATH/package-manager
      ./package-manager-cli.bin install NativeCLI
    • Add tizen CLI-tool to the system PATH in the terminal where you run WATT
    export PATH=$PATH:TIZEN_SDK_PATH/tools/ide/bin/

Quick Start

  • Getting the sources:
git clone https://github.com/Samsung/WATT.git
cd WATT
  • Start the server:

WATT will run some internal executable files,

for this, WATT needs set paths of executable files on System Environment Variable(PATH).

If you don't start the server with launch, WATT could not provide full functionality.

./launch

Tests

To run the test suite, first install the dependencies, then run npm test:

npm install
npm test
  • Connect to the web server, the service is provided with port number 3000:
On browser, http://localhost:3000/

Developing Design Editor in WATT

  • Design Editor is located in libs/tau-wysiwig
  • After making DE changes launch WATT with bp option
./launch -bp
  • After making changes on already running WATT:
# in WATT directory
cd libs/tau-wysiwig
npm install
npm run-script build-watt
  • Always after making any DE changes in WATT console:
b

Running WATT in docker container

Install docker-ce (not docker). Follow steps from https://docs.docker.com/install/linux/docker-ce/ubuntu/. Recommended version is 18.06.1ce3-0~ubuntu. If you are using a newer one give it a try.

WATT along with mongodb images can be built and run by:

./docker-run.sh

Ensure 3000 port to be free. You should see logs on terminal:

watt_container_1   | Listening on port 3000
watt_container_1   | TAUComm started
mongo_container_1  | 2019-03-11T07:18:23.178+0000 I NETWORK  [thread1] connection accepted from 172.19.0.3:36916 #1 (1 connection now open)

Open localhost:3000 in Browser.

Inspecting docker images.

WATT and mongodb images are composed together by docker-compose.yml. However, if you want to execute any command on particular image type:

docker run -it 5f142ecd12f5 bash

ImageId can be found from:

docker images

License

Refer WATT License

About

A Web Assembly Translation Toolkit (WATT), a new Web Assembly (WASM) application authoring tool that allows developers to create a WASM based library easily and use it to create WASM based applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 34.1%
  • CSS 32.9%
  • HTML 27.4%
  • C++ 2.5%
  • RAML 2.0%
  • Makefile 0.5%
  • Other 0.6%