/React-with-WebAssembly-and-Docker

Implementation of React with WebAssembly containerised by Docker.

Primary LanguageJavaScript

Containerize React, WebAssembly (C++ emscripten) with Docker

Problem: WebAssembl (WASM) is bytecode that improve performace of web at near native speed. To develop React application with Web Assembly considering Scability, Containerization is solver. So, this repository is to containerize WASM with React application and host it on Nginx

Blog: Soon.....

Pre-Installation

  1. Docker
  2. NPM

Installation

  1. Build image
docker build -t docker-build-wasm .
  1. Run container
docker run --name docker-build-wasm-container -p 8888:80 docker-build-wasm 
  1. Go to http://localhost:8888 in browser

  2. Open Browser's JS Console.

Next Step and Improvement

  • Break web assembly into monorepo
  • Watcher (hot reload) for development of .cpp files

Reference: