To the Moon - Setup an IOTA.rs with Rocket

Short Description: Build a small web backend wich returns the current balance of an IOTA address.

Live Demo: here.

Link to Code:

Using:

Introduction

Rocket Rocket is a web framework for Rust that makes it simple to write fast, secure web applications without sacrificing flexibility, usability, or type safety.

iota.rs Rust library to interact with the Tangle through IOTA Nodes.

With combination of these two libraries we can build a an endpont of an Web Backend Application, which returns the current value of an IOTA address.

Instructions

Create a new Rust application.

cargo new rocket-iota-demo --bin

Install Heroku buildpack for rust.

heroku buildpacks:set emk/rust

Set the Rocket environment to production.

heroku config:set ROCKET_ENV=production