GithubHelp home page GithubHelp logo

piotr-iohk / cardano-up Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 3.0 2.02 MB

Lightweight manager for Cardano binaries and configs.

License: MIT License

Ruby 95.41% Shell 0.30% Nix 4.29%
cardano-node cardano-wallet cardano-addresses bech32 cardano-cli cardano wallet

cardano-up's Introduction

Cardano Up!

Gem Version

Overview

This Ruby gem provides easy way for:

  • getting cardano-node, cardano-cli, cardano-wallet, cardano-addresses and bech32 tools onto your system (Linux, MacOS or Windows).
  • getting configuration for any Cardano public environment.
  • starting, managing and monitoring cardano-node and cardano-wallet services.

Installation

Rubygem:

$ gem install cardano-up
$ cardano-up --help

Nix:

$ nix develop github:piotr-iohk/cardano-up?dir=nix
$ cardano-up --help

or run directly

$ nix run github:piotr-iohk/cardano-up?dir=nix -- --help

Usage

It only takes a single command to start node and wallet on your system. Say, on mainnet?

$ cardano-up mainnet up

That's it! ๐ŸŽ‰

If any configs are missing cardano-up will download them. If any binaries are missing cardano-up will get ones from latest release.

To explore more options call:

	$ cardano-up --help
	$ cardano-up --examples

Documentation

Link Description
Usage examples Also available in $ cardano-up --examples
Ruby API (edge) cardano-up API doc

How it works

By default cardano-up keeps all files at $HOME/.cardano-up/ however this can be configured by editing $HOME/.cardano-up/.cardano-up.json directly or via config sub-command. One can check the contents of this internal config file by calling $ cardano-up config.

Configurations for the networks are downloaded from Cardano Book.

Binaries come from cardano-wallet which actually provides cardano-node, cardano-cli, cardano-wallet, cardano-addresses and bech32 tools in each of its release bundles. This ensures that all components are compatible and work smoothly together. You can get any public release of the cardano-wallet bundle.

Starting cardano-node and cardano-wallet, cardano-up attempts to launch separate screen sessions for wallet and node respectively. If screen is not present on your system you can install it using package manager, e.g.:

MacOS:

$ brew install screen

Linux:

$ sudo apt-get install screen

In case of Windows it will attempt to install cardano-node and cardano-wallet as Windows services using nssm tool. Nssm can be installed via choco package manager:

$ choco install nssm

โš ๏ธ nssm requires administrator permissions to register Windows services, therefore you need to start your cmd as an administrator.

There is also basic session management in cardano-up. In a single session you can have at most 1 node and 1 wallet for particular network. Because of the sessions you can quickly check details of your running components (like where are the log or database files or what ports are used) and you have some basic tools to monitor them (via tail and ping subcommands).

License

The gem is available as open source under the terms of the MIT License.

cardano-up's People

Contributors

piotr-iohk avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

cardano-up's Issues

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.