Orchestrate.io JavaScript Client Library

Today I’m starting a project working with Orchestrate.io’s API & open source software collaborations. More about the project in a moment, let’s get up to speed on what I’ll be including in this project. My main focus is to build a client library to access Orchestrate.io. During building this I’ll dive into the key value, graph and other storage mechanisms that the client library will provide. Beyond that, I’ll take a stroll through building an NPM library and the pertinent JavaScript the library. So buckle up, we’re going on a code slinging hash writing hacking session.

Over the course of putting together this material, I’ll be posting most of the core material on Orchestrate.io’s blog, so subscribe for updates as they come out. Feedly is a good option, connect via searching for “orchestrate.io” or navigate over to the Orchestrate.io blog itself. 😉

Project Effort Context

During building the client I’ll take a dive into who, what, where, when, why and how to interact with the various data structures. I’ll aim for the client to follow the model of the existing Go Client Library that is available at Orchestrate Go Client on Github. It follows a basic model as shown below in Go language.

[sourcecode language=”cpp”]
c := client.NewClient("Your API Key")
// Get a value
value, _ := c.Get("collection", "key")
// Put a value
c.Put("collection", "key", strings.NewReader("Some JSON"))
// Search
results, _ := c.Search("collection", "A Lucene Query")
// Get Events
events, _ := c.GetEvents("collection", "key", "kind")
// Put Event
c.PutEvent("collection", "key", "kind", strings.NewReader("Some JSON"))
// Get Relations
relations, _ := c.GetRelations("collection", "key", []string{"kind", "kind"})
// Put Relation
c.PutRelation("sourceCollection", "sourceKey", "kind", "sinkCollection", "sinkKey")
[/sourcecode]

I’ll be working on this client, but don’t hold back on me, feel free to jump in with some of your own code or telling me I wrote some code wrong or whatever. I’d gladly accept any committers jumping in to help out. The more we all work together the more useful information I can provide during this project.

Once this project has produced a workable client pending interest from the community I’ll put together some material about where, how and some best uses around using the client in your Node.js Application. Even prospectively build a JavaScript client side library prospectively for use with Angular or other popular client side libraries.

References

A Day in The Life of http://adron.me

So I sat down and hacked up a new version of Adron.me. I snagged a site theme and skin from Theme Forest and ran with it. Broke apart each of a few sections to get a minimally viable site up within 24 hours. I got interrupted a few times with a few other things I needed to wrap up, more about those things later. For now I put together the site, check it out @ http://adron.me. I also put together a video of the hack session during various stages of getting the site live.

During the video I also have a few excursions away form the code to help stay focused on the code. At one point I’m actually working on the Junction App too. Also, keep an eye on it and you can see my Sublime 2 usage, iMac, Lenovo Carbon X1, Ubuntu and a whole slew of other tech. More on all those things too, for now… here’s the video.

…and yeah, no real code complexities or such, mostly an excuse to make a video to some oddball dubstep from the scraps of video I put together during building http://adron.me. Hope it was entertaining, cheers – Adron.

Johnny 5 yo! Nodebots Day PDX

Today the first Nodebots Day took place worldwide! Portland held its own event here at the old Urban Airship garage space. With the garage door wide open and the glorious day gleaming daylight into the garage 50+ hardware and coding beginners, learners, coders and hackers of all backgrounds came together. Breadboards were wired up, code was slung, robots moved and twitched to life.

This all started with a super quick organizing effort by some local JavaScript hackers to join the worldwide Nodebots Day (check the repo for infoz). After a meet, some sponsors jumping to our aid, and some hustle by some great people, the event in Portland came together. The turnout was great!

The bits everybody got...
The bits everybody got…
Bits up close...
Bits up close…

My Own Robot Battle

Oh dear, I was dead zonked when I arrived. It’s been a super long and hard week. I’ve had deadlines to meet, code to write and OSCON to attend, needless to say that leaves basically a few hours each night of the last week to actually recharge. Things were definitely catching up with me…  and I’ll admit I made almost zero progress, however I was super excited to see what many others accomplished!

Panoramic View of Nodebots Day PDX.

There was the quad copter that Carter @CarterRabasa got up and flying with some aerobatic acrobatic flips.

There was an erector set wheeled robot that was primed for deployment. Nothing like combining the quality and build endurance of erector set gear with that of modern machine and robot automation for fun!

Troy going mad scientist on his bot.
Troy going mad scientist on his bot.

Troy @thoward37 was building a walking bot for world domination… which if he didn’t finish it after my departure I’m looking forward to see it walking and doing full auto-deploy in the near future.

Serial Port for a head!
Serial Port for a head!
Wires, Connections, Devices & More...
Wires, Connections, Devices & More…

There was musical linkages being made to device and computer alike. With code combining to form knew methods of interaction between device, human and music.

Along with these bots there was much progress among breadboards laced with ideas and blinking LEDs amidst us all. I do believe everybody had a blast and learned a lot.

Erector Robot
Erector Robot
Edit Post ‹ Composite Code — WordPress
Working together… creating the robot society!
Codez! Arduino! Wires! Brains!
Codez! Arduino! Wires! Brains!

Johnny 5 and I say “THANKS AND HIGH FIVES!!!”

A huge thanks to so many, I might have missed a few people, apologies (and let me know, I’ll add you to the list of thanks!!)  —  and also, thanks to EVERYBODY who came out and worked and learned about robots!

Also if anybody has any questions about robots, javascript, node.js, robots in Portland, Portland Bridges or the event or about coming to Portland to hack, code, beer, food or just move here. Let me know and I’ll be more than happy to hook you up with appropriate resources!  Peace!

  • @HackyGoLucky – Cuz yeah, you kicked some ass and herded all us cats together for this! Thanks Tracy!
  • @nexxylove – Thanks for the code repo o’ lights! I’m sure you enjoyed San Francisco, we missed you in Portland! We’ll hack when you’re back!
  • @BlaineBublitz – Welcome to Portland again, thanks for traveling into town! I’ll ping you next I’m in Phoenix and we’ll hack the light rail. 😉
  • @s5fs – Yo, ok, you just front loaded my cortex full of ideas on that last brunch convo. Thanks for helping, being kick ass, and coming out to Nodebots day!
  • @nickniemeir – Thanks for coming up to Nodebots day PDX!
  • @thoward37 – What did you do again? You keep showing up everywhere… are you a robot?
  • @CarterRabasa – Thanks for coming down to the Stumptown from the Emerald City.
  • @_jden – Yo, Palo Alto to bridge city (another PDX nick name)… welcome back to PDX and to the future with our Robot Overlords!

Resources:

A Windows Azure Deployment with Node.js Video

I have been playing around with Windows Azure again, as it has gotten really solid and feature rich in the last year. So much so that it’s provided reasons for me to use it versus some of the default go to providers. One of the things that I’ve found immensely useful is the brain dead simple application deployment for Node.js using Github and Windows Azure.

Also, if you’d like to see other videos I’ve put together and see new videos I’ll be publishing, follow my Vimeo Account at https://vimeo.com/channels/shreddingcode/. This video is kind of a sneak peak of a full episode of the Shredding Code series I’m putting together. So follow my Vimeo or subscribe to the blog to catch the premiere episode and subsequent episodes I’ll be producing.

Cheers! Adron of Composite Code, Shredding Code.

Who is Node PDX for? Who should attend? What’s going on? Where are we at?

Node PDX is a conference that is for programmers (ticket link below!!) both new to the industry and stalwarts, ladies and gentlemen, and simply the curious or already seasoned pros of JavaScript. Our goal is to have great speakers, great topics, encourage and support intelligent and forward thinking conversation. All of this and we’ll strive to move the industry forward as a whole in whatever way we can. Node PDX is for those that want to help do just that!

What is Node PDX? What is Portland?

Node PDX is a conference held yearly in Portland, Oregon. It’s driven by the passionate tech industry located in Portland and around the country and world. At the conference we’ll dive into technologies surrounding JavaScript, Node.js, NPM, hardware and beyond. Other topics may include patterns, design practices, new libraries, and technology add ons.

Portland is a coder’s paradise! Nuff’ said. 🙂

Where is Node PDX?

PDX is the airport code for Portland, Oregon. It’s not at the airport, but if you fly in to our fair city for Node PDX, take the light rail Red Line MAX to downtown and enjoy our coffee, beer and some of the finest food and the most amazing cart collections you’ve ever seen in your life. Promise!

If you’ve never heard of Portland, Oregon here’s a documentary starter…

When is Node PDX?

First off, it’s going to be every year. This year, the grand year of two thousand and thirteen, is going to be on the 16th and 17th of May. That’s a Thursday and Friday on the 3rd week of the fifth month of 2013. Come for Thursday or Friday or Thursday and Friday and enjoy the weekend afterwards. However you pick your days, we hope you come and join us for Node PDX 2013 on May 16-17, 2013.

Why Node PDX?

This is easy. Node PDX is a conference that Troy Howard and I put together out of a frustration from two things: we wanted a conference without the high prices and had a desire to contribute to the local JavaScript and Node.js community, and any other interested coder community. Thus, Node PDX was born in a few quick weeks of hectic hustle. This year we’re back at it with Luc Perkins hacking the program along with us.

Node PDX, How is This Happening?

Mostly magic, with the help of some druids and unicorns. But for some of the heavy lifting we’re looking for sponsors, but we’re throwing an interesting little twists into the fray.

Last year we worked hard to be inclusive and bring together great talks. We did this in a various ways. The first was, we used a Github repository for the site and pull requests as the method to submit talks. We figured, what better way to submit a talk to a developer’s conference than to throw down a commit and pull request to Github. Needless to say, it worked great!

In 2012 to insure we had proper party groove and vittles for the attendees we had volunteers throw down some chef skills and some great sponsors including New Relic, Mozilla and others. This year we’re aiming for a slightly different angle and putting a little more crowd sourcing into the ingredient list.

So here’s how you can get involved!

  • First and foremost: Come to Node PDX – Get your tickets here!!  Oh yeah, there’s a 200 limit, and only so many early birds so do NOT wait!!  🙂
  • Second, throw a talk into the mix! We’ve got two tracks lined up so we’re looking for a lot of material, beginner to advanced!

That’s it! To keep up with the latest, subscribe to my blog here and/or read up on the Node PDX Site! We’re looking forward to seeing you in Portland (even if we see you in Portland every day!)  Cheers!