Giter Club home page Giter Club logo

hedera-accelerator-defi-dex-ui's Introduction

Hedera DEX UI Accelerator

Live App: defi-dex

Status: POC

A DEX (Decentralized Exchange) UI accelerator that operates on the Hedera network. The DEX UI utilizes React primitives from the hedera-accelerator-defi-dex-ui-components UI component library.

Read The Docs


Table of Contents

Installation

Install dependencies with yarn.

yarn install

Setup Local Environment

Setup HTTPS for Local Wallet Pairing

The Hedera DEX Accelerator utilizes the hashconnect library to pair with supported wallet extensions. Currently, the only supported wallet extension is HashPack. The HashConnect 1-click pairing feature only works in an SSL secured environment (https URLs). To enable HTTPS in your local build:

  1. Create an .env file in the root of this project.
  2. In the .env file set the HTTPS environment variable to true.
/* .env */
HTTPS=true
  1. Create an SSL certificate. There are several tools that can be used to generate a certificate and key. An easy way to do this is to use the mkcert tool.
# The [Homebrew](https://brew.sh/) macOS package manager is used for this example

# Install mkcert tool
brew install mkcert

# Install nss (only needed if you use Firefox)
brew install nss

# Setup mkcert on your machine (creates a CA)
mkcert -install

# Create a directory to store the certificate and key
mkdir -p .cert

# Generate the certificate (ran from the root of this project)
mkcert -key-file ./.cert/key.pem -cert-file ./.cert/cert.pem "localhost"
  1. Set the SSL_CRT_FILE and SSL_CRT_FILE environment variables to the path of the certificate and key files.
/* .env */
HTTPS=true

/* Path to certificate */
SSL_CRT_FILE=./.cert/cert.pem

/* Path to key */
SSL_KEY_FILE=./.cert/key.pem
  1. Make sure to include .env and .cert in your .gitignore file so this information is not committed to version control.

  2. Run the application with yarn start. You should see https:// prefixed to the localhost URL.

Additional Info

Usage

Run The Application

yarn start

Run Tests

yarn test

hedera-accelerator-defi-dex-ui's People

Contributors

damiano-melcarne-lab49 avatar roshan-bisht-lab49 avatar wayne-sun-lab49 avatar shivamgarg-lab49 avatar dependabot[bot] avatar shivamgarglab49 avatar abhishek-k-sharma-lab49 avatar amandeeprehal-lab49 avatar simihunjan 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.