Giter Site home page Giter Site logo

w3f-grants-archive / dotflow-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thedotflow/dotflow-ui

0.0 0.0 0.0 401 KB

Repository containing the code of the Doflow UI

License: MIT License

JavaScript 0.88% TypeScript 97.80% Dockerfile 0.09% SCSS 1.22%

dotflow-ui's Introduction

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

dotflow-ui's People

Contributors

cuteolaf avatar szegoo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.