Skip to content

rexmadden/rails_eth_api

Repository files navigation

Server Side Ethereum Proof of Concept using Rails

This app demonstrates who to write server side Ethereum code. Most of the tutorials I found focus on Dapps -- I'd recommend this Dapp tutorial by ConsenSys if that's what you're looking for. However, I wanted to manipulate an Ethereum node from a backend server.

System dependencies

  • cpp-ethereum - for solc, the solidity contract compiler
  • ethereumjs-testrpc - A Ethereum JSON-RPC simulator. Let's you run tests really fast.
  • geth - For running a real JSON-RPC node.
  • PostgreSQL - in case I need a database later, though I may yank that out.

Goals

  • Manipulate Ethereum wallet and execute transactions on the server side, including creating contracts and accounts.
  • Create unit tests and integration tests.
  • Create an automated deployment mechanism (normally I'd use Heroku, but the geth node dependency means that won't work.)
  • Communicate with a separate web server.

Done So Far

  • Run some unit tests against contracts.
  • Use the Ethereum Ruby api.

Running test suite

  1. Make sure testrpc is running
  2. rake spec

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...

About

Server-side Ethereum/Ruby/Rails proof-of-concept.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published