The mainnet and testnet versions of the Force are on two different repositories.
# Add remote, if you haven't added it already!
git remote add prd [email protected]:effectai/force-frontend-prd.git
# Fetch remote info
git fetch
# Switch to branch prd/deploy
git switch deploy
# Merge changes from your branch
git merge <your-branch>
# Push deploy to prd
git push
# Go to Github and make a Pull Request from deploy to mainnet-config
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
- Clone the GitHub repository: https://github.com/effectai/effect-js/
- Install & build SDK:
npm i && npm run build
- Link effect-js to local install:
npm link /path/to/effect-js/
When you make changes to the SDK you should run npm run build:cjs
in that,
after which the force frontend will automatically reload the changes.
Node version v14 is required to run the project. If you have nvm installed, you can run nvm use
to switch to the correct version.
there are 2 GitHub actions workflows:
- if you push to the main branch, it will build the static website for mainnet and push it to the
gh-pages
branch. The files on thegh-pages
branch are served on https://app.effect.network - if you push to the testnet branch, it will build the static website for testnet (APP_ENV=testnet) and commit all the build files (in /dist) to another repository (effectai/force-frontend-testnet). That repository is set to serve files to testnet.effect.network main is protected and you cannot directly push to main, so best to first push/make a PR to testnet and from there we make a PR to main