⏮️ Back to main README.md
- AB Testing
- Geo Redirect
- KV Store
- MCP Server
- React App
- Static Assets
- Template Invoice
- Template Invoice (using AB-Testing)
Having pulled down the repo: git clone git@github.com:G-Core/FastEdge-examples.git
First enter the javascript directory, followed by installing all the node_modules.
cd FastEdge-examples/javascript &&
npm installHaving everything installed you can use the simple npm run build command to build individual examples.
This script takes an input parameter which is the name of the examples folder. e.g.: "geo-redirect"
npm run build geo-redirectThis will take the /geo-redirect example and build the wasm into the ./dist folder named as such: geo-redirect.wasm
All the examples in this repo can also be built using npx fastedge-build as per the instructions in the FastEdge-sdk-js
The build script in this repo is purely a helper function to simplify this build process.
Note: Some of these example folders are complex and have there own build pipelines (e.g. react-app). Follow their README.md before building.
Having built the binary of any of these examples you can safely load them within the Client Portal and test as you please.
Alternatively you can run these examples locally using the FastEdge-runner
To simplify building and running of these examples checkout our VSCode extension.
No more need to build and run seperately.