vitor-mariano / webassembly-and-cmake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebAssembly and CMake

Requirements

  • Git
  • Docker
  • Docker Compose

Getting Started

Clone the repository.

git clone git@github.com:vitor-mariano/webassembly-and-cmake.git
cd webassembly-and-cmake

Install the dependencies.

docker-compose run --rm web yarn

When running the first time, this command can take a long time to build the environment.

Install the dependencies.

yarn

Up and Running

After install the dependencies, start the development server.

docker-compose up

Now you can access the application typing http://localhost:1234 in the browser.

Development

You must enter the development container to have access to all commands from the development environment.

docker-compose run --rm web bash

Compiling C and C++ files

Use the yarn build command to generate wasm files from C or C++ files.

yarn compile

About

License:MIT License


Languages

Language:Dockerfile 32.5%Language:CMake 27.4%Language:HTML 14.5%Language:TypeScript 10.7%Language:C++ 8.1%Language:Shell 6.8%