Giter Site home page Giter Site logo

tina0620 / og Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zhongantech/annchain.og

0.0 0.0 0.0 46.16 MB

Annchain.OG is a DAG based decentralized ledger and Dapp platform

Home Page: http://www.annchain.io

License: Apache License 2.0

Go 83.51% Makefile 0.12% C++ 1.94% Shell 0.02% M4 0.53% C 11.94% Python 1.24% Assembly 0.67% Dockerfile 0.02%

og's Introduction

OG

OG is a dag based decentralized ledger and Dapp platform.

Insatallation

Get code from github:

go get github.com/annchain/OG

Build the project:

cd $GOPATH/src/github.com/annchain/OG

make og

The node will be built in build directory

Running

# running og by loading config file from local filesystem :
./og -c config.toml  run

# running og by loading config file from remote http server :
./og -c http://127.0.0.1:8532/og_config run

# running og by assigning log output path:
./og -c config.toml -l log_path/ run

Other og commands:

-c, --config string         Path for configuration file or url of config server (default "config.toml")
-d, --datadir string        Runtime directory for storage and configurations (default "data")
-h, --help                  help for OG
-l, --log_dir string        Path for configuration file. Not enabled by default
-v, --log_level string      Logging verbosity, possible values:[panic, fatal, error, warn, info, debug] (default "debug")
-n, --log_line_number       write log with line number
-s, --log_stdout            Whether the log will be printed to stdout
-m, --multifile_by_level    split log into multiple files by level
-M, --multifile_by_module   split log into multiple files by module

Usage

RPC

Users can call the node's functions through RPC interface. The default URL address for RPC is localhost:8000, which is set in the default config file. You can switch the port by changing the value of key [rpc].port in config file.

For more details of each RPC API, you can check document: https://github.com/annchain/OG/blob/dev/rpc/doc.md

Development

License

og's People

Contributors

heeeeeng avatar latifrons avatar sunliang711 avatar metabd 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.