Nebula Chain Intelligent Contract Development (VII): DAPP Development

Source: Internet
Author: User

Installing Neb.js

Neb.js provides API interface for JavaScript development

    1. Create a Neb folder, enter the folder in the terminal command line, clone neb.js
      git clone https://github.com/nebulasio/neb.js.git
    2. Creates a new Neb.js folder, enters the folder, installs all dependent
      npm install
    3. Installing Gulp
      npm install gulp
    4. Packaging and generating neb.js files
      gulp
    5. Successful execution will generate the/dist folder, and the folder will generate the JS file we want to use.
      • neb.js:Used in Browser side. including outside dependency.
      • neb-light.js:used in REPL console. Not including outside dependency.
      • nebulas.js:Fully functional in the browser. Users can create an address, sign a transaction, and Deploy/call a smart contract.
Installing Nebpay

The Nebpay SDK provides a unified payment interface for trading on different platforms, and developers can use the Nebpay API on the Dapp page to make transaction payments and contract calls via the browser plugin wallet, mobile app wallet, and more.

GitHub Address: Https://github.com/nebulasio/nebPay

Installation method is the same as above. The Nebpay.js file is generated

Development Dapp

The functionality to implement is very simple:

    • Call the Save method in the contract to publish information
    • Call the Read method in the contract to read the information
Build a project

Put the previously generated nebulas.js and Nebpay.js in the Libs folder, my directory structure is as follows:

Index.html Source
<!DOCTYPE html>

Nebula Chain Intelligent Contract Development (VII): DAPP Development

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.