Skip to content

Execute Power FX in your client (React) via .NET (WASM) and JS interop.

License

Notifications You must be signed in to change notification settings

NETWORG/power-fx-wasm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP, details TBD

Click here for live DEMO.

Based on: https://github.com/microsoft/power-fx-host-samples/tree/main/Samples/WebDemo

Blog post: https://hajekj.net/2022/10/17/power-fx-in-javascript/

Run locally

  1. Build PowerFxWasm project
  2. Navigate to outputs, for example ``
  3. Install http-server (via npm, npm -g i http-server)
  4. Run http-server --port 7080 --cors
  5. Navigate to frontend
  6. Create file called .env.local
  7. Put the local web server's URL as variable: REACT_APP_PFX_WASM_HOST="http://localhost:7080"
  8. Navigate to frontend, run npm run start
  9. Open app at http://localhost:3000