Playground is a Vue application that helps with deploying solutions on TF Grid v3. The backend for the playground is introduced with grid client which communicates to TF Chain and TF Grid over RMB.
-
Prerequisite
- Nodejs 16^
- yarn
For troubleshooting please checkout this file troubleshooting
-
Clone the repository & Install Dependencies
git clone https://github.com/threefoldtech/tfgrid-sdk-ts.git cd tfgrid-sdk-ts yarn install make build
If the build fails due to a memory issue, please use the following command
export NODE_OPTIONS="--max-old-space-size=8192"
For detailed information you can read the Getting Started documentation.
- Run playground in Development mode
make run project=playground
- Run playground in Production mode
make build project=playground
This will generate the production build in the dist
directory, which can be served using Caddy or NGINX
You can run the playground in different modes. by editing the config file in playground/src/config.js
For an automated generation of the config file you can use the script build-env
in scripts/
it will generate the config file based on your env-vars.
cd packages/playground/public
bash ../scripts/build-env.sh
More illustration on the build-env script here