You are viewing a single comment's thread from:

RE: Steem development #1: First step into developing an app with the Steem Blockchain

in #utopian-io6 years ago

FYI: This seemed straightforward enough... The instructions are clear, I followed the steps, installed Ruby 2.3.3 on Windows 10, and added the radiator gem successfully:

$ bundle info radiator
* radiator (0.3.15)
Summary: STEEM RPC Ruby Client
Homepage: https://github.com/inertia186/radiator
Path: d:/git/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/radiator-0.3.15

However the server does not start:


$ rails server
d:/git/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.16.1/lib/bundler/runtime.rb:84:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'radiator'. (Bundler::GemRequireError)
Gem Load Error is: uninitialized constant Process::RLIMIT_NOFILE

I don't expect you to troubleshoot this, but just wanted you to be aware of a potential problem. I am not a Ruby developer, nor do I want to be, so I just tried to set this up out of curiosity. I'm familiar with JS though, so I'd be very interested in a JS version of this app.

Sort:  

Thanks for the feedback. Did you remember to run bundle after adding the gem? I can try and troubleshoot a little with you.

I actually made something similar in JS recently, and since a few people asked, I'll try and get a JS version up this/early next week. JS is even easier to get started with.

Thanks again for the comment and feedback.

Yes indeed I ran bundle and I shared the output of bundle info radiator to show that the radiator gem is present.

Thanks for offering to troubleshoot, but that is not necessary: I look forward to see your JS version of this tutorial, because your current tutorial is very well written. I don't intend to do anything with Ruby going forward, but a JS version I would probably experiment with and expand upon.

Sure, no problem. Thanks for the quick turnaround - will look into JS over the next few days. Do you think people prefer a JS environment using NPM to install dependencies, or just a CDN link style tutorial?

I'm not sure exactly what you mean by a "CDN link style tutorial". But I'm very familiar and comfortable with NPM and would probably prefer that. Even though it's easy to run into version-mismatch issues with NPM installs (which I suspect also to be the case in my Ruby install for your current tutorial).

Ok, sounds good. By CDN, I mean sometime you see people just make a html file and dump <script src="..."> instead of using npm to manage packages and the such, which obviously doesn't work well for anything other than a basic introduction to a new lib.

Sounds good, I'd rather do things the right way and use npm to manage packages, maybe webpack to bundle or something.

Wonderful! NPM, webpack etc is the way to go for anything beyond the trivial.
BTW, I'm happy to test-run your tutorial before you publish it if you'd like.

Alright
[-]edward.maesen, let's do it. Published a draft here in the readme, also with a live demo. I decided to user React, since that is what Steemit.com is also built using, and it's the most popular UI framework at the moment.

https://github.com/lmiller1990/steem-followers-js

If you could go through it and let me know how things are going, that'd be great. Not sure if comments on this article is the best way to work on this or not, haha.

Ok, I'll take a look at it. If I have questions we can figure out how best to communicate. (I'm on discord: edward.maesen#2954)

Coin Marketplace

STEEM 0.19
TRX 0.13
JST 0.030
BTC 60226.25
ETH 3294.78
USDT 1.00
SBD 2.38