TheDotflow / dotflow-ui

Repository containing the code of the Doflow UI

Home Page:https://dotflow-app.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotflow-ui

License: MIT

Project details can be found here

Run with docker

  1. Make sure to have Docker installed
  2. To build an image run: docker build -t dotflow-ui .
  3. To run the app: docker run -dp 3000:3000 dotflow-ui
  4. Go to http://localhost:3000/ to interact with the webapp

Set up development environment

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

  1. Install NodeJs
  2. yarn install
  3. yarn dev
  4. yarn compile NOTE: This requires the dotflow-ink repository to be cloned next to the dotflow-ui repo.
  5. Go to http://localhost:3000 to interact with the webapp

Running tests

Some tests require a zombienet network to be run in the background. The steps to take before running the tests are the following:

  1. Run a local swanky test node. This is where the contracts will be deployed to locally. The command to run: ./swanky-node --dev --tmp
  2. 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

About

Repository containing the code of the Doflow UI

https://dotflow-app.com

License:MIT License


Languages

Language:TypeScript 97.8%Language:SCSS 1.2%Language:JavaScript 0.9%Language:Dockerfile 0.1%