Project details can be found here
- Make sure to have Docker installed
- To build an image run:
docker build -t dotflow-ui .
- To run the app:
docker run -dp 3000:3000 dotflow-ui
- Go to
http://localhost:3000/
to interact with the webapp
Before running the webapp locally it is required to first deploy the contract and set the required CONTRACT_IDENTITY
environment variable to the address of the deployed identity contract.
You can use the same address for the environment variable that is used in the Dockerfile
.
For details regarding the contract deployment go to this page
- Install NodeJs
yarn install
yarn dev
yarn compile
NOTE: This requires the dotflow-ink repository to be cloned next to thedotflow-ui
repo.- Go to
http://localhost:3000
to interact with the webapp
Some tests require a zombienet network to be run in the background. The steps to take before running the tests are the following:
- Run a local swanky test node. This is where the contracts will be deployed to locally. The command to run:
./swanky-node --dev --tmp
- Follow the instructions on trappist and run the full_network.toml network.
After the swanky node and the zombienet network is running you can run all the tests. Keep in mind that this will take several minutes to run.
# NOTE: we use the runInBand to run the tests sequentially since
# otherwise there could be some issues occuring.
yarn test -- --runInBand
The tests can take quite some time to run so, in case you want to run a specific test file, run the following command instead:
yarn test -- ./__tests__/test_file.test.ts