GithubHelp home page GithubHelp logo

r3e-network / neon-js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cityofzion/neon-js

0.0 0.0 0.0 42.19 MB

Javascript libraries that allow the applications to interact with NEO blockchain

Home Page: https://docs.coz.io/neo3/neon-js/index.html

License: MIT License

Shell 0.02% JavaScript 3.05% Python 0.03% TypeScript 96.59% CSS 0.09% HTML 0.12% Dockerfile 0.10%

neon-js's Introduction

neon-js

Neon JavaScript SDK.

Overview

This is the JS SDK for the NEO blockchain platform. This project aims to be a lightweight library focused on providing blockchain interactions in the browser.

It is currently in use by Neon.

Visit the docs to learn how to use this library!

Getting started

Installation

Nodejs

npm i @cityofzion/neon-js

Browser through CDN

<script src="https://unpkg.com/@cityofzion/neon-js" />

Usage

Nodejs

import {default as Neon} from "@cityofzion/neon-js";
const acct = Neon.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");

Browser

Once imported using the script tag, the module is available as a global object Neon.

console.log(Neon);
var acct = Neon.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");

Note For most use-cases, we recommend neon-js. Do not use neon-js and neon-core in the same project. The classes are not cross-package compatible. See CityOfZion#850.

Contributing

Please refer to CONTRIBUTING for development practices.

Setup

This repository is a typescript mono-repo using Lerna and Yarn workspaces. Please ensure the following is installed:

  • Yarn (a version that support workspaces)
  • Node (latest LTS aka v8 at time of writing)

lerna is optional and only required for advanced operations.

git clone https://github.com/CityOfZion/neon-js.git
cd neon-js
yarn
yarn bootstrap
yarn build

Testing

yarn lint
yarn build
yarn dist
yarn test:unit
yarn test:integration

Docs

We use Docusaurus for our docs website. The docs are stored in ./docs while the main website and its configuration is in ./website.

cd website
yarn
yarn start

License

neon-js's People

Contributors

backslash47 avatar birmingh avatar chaoweichiu avatar cinooo avatar comountainclimber avatar corollari avatar dautt avatar dependabot[bot] avatar dvdschwrtz avatar ejhfast avatar evgenyboxer avatar habibkarim avatar hal0x2328 avatar igormcoelho avatar ixje avatar jeroenptrs avatar liuqiang1357 avatar lllwvlvwlll avatar mhuggins avatar morgandream avatar nickfujita avatar notatestuser avatar rockacola avatar slipo avatar snowypowers avatar stefankern avatar uvmetal avatar wmira avatar wy avatar wyattmufson 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.