Code Monkey home page Code Monkey logo

mx-delegation-dapp-test's Introduction

MultiversX Network


Dapp boilerplate for Delegation

The react implementation for Dashboard Delegation


· Report Bug · Request Feature

Table of Contents
  1. Built With
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing

Built With

Getting Started

The dapp is a client side only poject and is built using the Create React App scripts.

Follow the next step to start using this dapp or follow the next tutorial on Youtube

Prerequisites

For development you will need to have the following:

  • node version 14.17.6
  • npm

Instalation and running

Step 1. Install modules

From a terminal, navigate to the project folder and run npm install --legacy-peer-deps

Step 2. Update Configs

In the application's src folder there are 3 config files (config.devnet.ts, config.testnet.ts, config.mainnet.ts).

Based on the environment used the configs will need to be updated:

  • delegationContract : should contain the address of the Delegation Smart Contract received after the creation of Delegation Smart Contract
  • also check the walletAddress, apiAddress and explorerAddress

Step 3. Create .env file

  • copy .env.example to .env
  • leave as it is to deploy on a root domain e.g. staking.yourcompany.com or add path e.g. PUBLIC_URL=/staking/ if you wish to deploy the app in a subfolder.

Step 4. Build for testing and production use

A build of the app is necessary to deploy for testing purposes or for production use. The dapp is configured with build scripts targeting either the public devnet, the public testnet or the public mainnet.

For testing on the devnet run => npm run build-devnet

For testing on the testnet run => npm run build-testnet

For production use on the mainnet run => npm run build-mainnet

Step 5. Run the dashboard

To run the project locally run npm run start from the project folder. This will start the React app in development mode, using the configs found in the config.ts file.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

One can contribute by creating pull requests, or by opening issues for discovered bugs or desired features.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

mx-delegation-dapp-test's People

Contributors

miromargineanu avatar danielailie avatar osterjour avatar constantintovisi avatar newtmex 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.