- Git
- Docker
- Docker Compose
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
After install the dependencies, start the development server.
docker-compose up
Now you can access the application typing http://localhost:1234 in the browser.
You must enter the development container to have access to all commands from the development environment.
docker-compose run --rm web bash
Use the yarn build
command to generate wasm files from C or C++ files.
yarn compile