Git Product home page Git Product logo

asch-dapp-helloworld's Introduction

Asch Dapp Helloworld

This repository is a simple hello world Dapp (decentralized application). With this Dapp you can register domains and link IP-Addresses to them. Very much like a basic DNS system.

Important

This repository includes the Backend and the Frontend of the asch-dapp-helloworld. We will learn how to install the backend and the frontend.

register setIp ipList

1 Installation

1.1 Preparation

Please follow the following steps carefully, to register your asch-dapp-helloworld Dapp on your local Asch Blockchain.

1.1.1 Clone asch-dapp-helloworld

Clone this repository:

git clone https://github.com/aschplatform/asch-dapp-helloworld/

1.1.2 Install Asch Blockchain

If you haven't installed the Asch Blockchain, the installation instructions are located here.

After the installation of the Asch Blockchain you should have the following file structure:

filestructure



1.2 Install Dapp Backend

In order to install your asch-dapp-helloworld Dapp, first install asch-redeploy

npm install --global asch-redeploy

Change directory:

cd asch-dapp-helloworld

Then execute asch-redeploy in the asch-dapp-helloworld folder:

asch-redeploy --output development/src/dappConfig.json

After a few seconds the dapp should be successfully registered on the local Asch Blockchain:

DappId

The new <dapp Id> for our Dapp is ed409eda243950a4702c0d4551740301c2e2ae7cf5dc512c03b04d9b2b07ee98
(yours will be different)

registerd

1.3 Install Dapp Frontend

In the asch-dapp-helloworld/development folder is the frontend for our Dapp.
Change directory to the development folder.

cd development

Install all dependencies:

npm install

Start the webserver:

npm run dev

Use the Dapp

Open your favourite browser and type http://localhost:8080

For this tutorial we use the following account:

{
  "secret": "sentence weasel match weather apple onion release keen lens deal fruit matrix",
  "publicKey": "a7cfd49d25ce247568d39b17fca221d9b2ff8402a9f6eb6346d2291a5c81374c",
  "address": "AHMCKebuL2nRYDgszf9J2KjVZzAw95WUyB",
}

Login with the secret we introduced right above:
login

Your account:
account

Help

If something is not working for you post your problem on gitter.im/asch-development.

asch-dapp-helloworld's People

Contributors

a1300 avatar bassjobsen avatar liangpeili avatar sqfasd avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

asch-dapp-helloworld's Issues

DApp Withdrawal is not working

The DApp withdrawal is reflected in the sidechain database but will not pop up on the mainchain database

TODO:

  • Is asch-js version up to date?

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.