Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tulipmania

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tulipmania

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

tulipmania (anno 1673) library / gem and command line tool

tulips on the blockchain; learn by example from the real world (anno 1637) - buy! sell! hodl! enjoy the beauty of admiral of admirals, semper augustus, and more; run your own hyper ledger tulip exchange nodes on the blockchain peer-to-peer over HTTP; revolutionize the world one block at a time

  • home :: github.com/openblockchains/tulipmania
  • bugs :: github.com/openblockchains/tulipmania/issues
  • gem :: rubygems.org/gems/tulipmania
  • rdoc :: rubydoc.info/gems/tulipmania

Command Line

Use the tulipmania command line tool. Try:

$ tulipmania -h     

resulting in:

Usage: tulipmania [options]

  Wallet options:
    -n, --name=NAME                  Address name (default: Anne)

  Server (node) options:
    -o, --host HOST                  listen on HOST (default: 0.0.0.0)
    -p, --port PORT                  use PORT (default: 4567)
    -h, --help                       Prints this help

To start a new (network) node using the default wallet address (that is, Anne) and the default server host and port settings use:

$ tulipmania

Stand back ten feets :-) while starting up the machinery. Ready to exchange tulips on the blockchain? In your browser open up the page e.g. http://localhost:4567. Voila!

Note: You can start a second node on your computer - make sure to use a different port (use the -p/--port option) and (recommended) a different wallet address (use the -n/--name option). Example:

$ tulipmania -p 5678 -n Vincent

Happy mining!

Local Development Setup

For local development - clone or download (and unzip) the tulipmania code repo. Next install all dependencies using bundler with a Gemfile e.g.:

# Gemfile

source "https://rubygems.org"

gem 'sinatra'
gem 'sass'
gem 'blockchain-lite'

run

$ bundle       ## will use the Gemfile (see above)

and now you're ready to run your own tulipmania server node. Use the config.ru script for rack:

# config.ru

$LOAD_PATH << './lib'

require 'tulipmania'

run Tulipmania::Service

and startup the tulip exchange machinery using rackup - the rack command line tool:

$ rackup       ## will use the config.ru - rackup configuration script (see above).

In your browser open up the page e.g. http://localhost:9292. Voila! Happy mining!

License

The tulipmania scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

FAQs

Package last updated on 25 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc