Skip to content

cheneym2/slang-playground

 
 

Repository files navigation

Development instructions

Setup

Development environment shell

On Windows, set up the environment as follows:

set TRY_SLANG_SOURCE_DIRECTORY_PATH=%userprofile%\source\try-slang
set TRY_SLANG_TARGET_DIRECTORY_PATH=%userprofile%\target\try-slang

In the following, it is also assumed that GNU Make and Python are in PATH. Follow the setup instructions in docs/building.md for building slang-wasm in the Slang repository. (E.g. setup shell for CMake and Emscripten, and setup the build.em output directory.)

Server

The Wasm loader needs a running web server in the build target directory, in order to load .wasm files.

**NOTE: ** You do not need a shell with the full development environment set up, you just need Python and the TRY_SLANG_TARGET_DIRECTORY_PATH environment variable.

To start the server, run something like:

$ cd $TRY_SLANG_TARGET_DIRECTORY_PATH && python -m http.server 8000

Iterate

To iterate on the website, make changes and build the website_runtime target, from a development environment shell:

$ make -f $TRY_SLANG_SOURCE_DIRECTORY_PATH/build.md website_runtime

Now load or reload localhost:8000 in your browser to see the results.

About

Web application allowing you to try out Slang in your browser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.8%
  • HTML 8.1%
  • CSS 7.4%
  • Makefile 3.7%
  • C++ 1.7%
  • Shell 1.1%
  • Batchfile 0.2%