This is my personal blog and journey in learning a new skill, Web Developing. In only 7 months I made a career change into this field by dedicating 25(avg) hours a week in studying Ruby. #All words are my own, except the ones I copy and pasted.
Showing posts with label api. Show all posts
Showing posts with label api. Show all posts
Wednesday, April 15, 2015
JSON view chrome extension recommendation
If you are not building APIs right now, I highly recommend you dedicate some time to building one. With the popularity of JS frameworks and native mobile, having data that is accessible to multiple places; Now is the time to learn and become confident in building an API, not to mention it can be extremely fruitful to one's web developer career.
I just attended a meetup where the announcement of the {JSON:API} 1.0 was announced and that is my recommendation is to use that for output of an API, only because it is my only experience, but there are other choices.
If you have already been using JSON as API serializer, I highly recommend a plugin or extension that pretty prints it in the browser. For whatever reason, I never thought of downloading something for that, but a coworker recommended the JSONView chrome extension. The extension has made my time working with APIs very nice. I recommend installing this or a similar extension in your browser today.
*My current project is a Rails API, and I am considering building a new public facing API for a popular sports team.
Tuesday, February 17, 2015
Rails API gem
I recently took on the task to create a Rails API gem for an Ember project I am working on. for STEAMrole. It is still very much in the beginning stages but I have both the Rails and Ember playing rather nice together.
Some noticeable differences in the way I started this project was I actually started with the Ember's client side application first. I wish I could say it was rather simple but I did have some hang-ups, specially while working with fixtures. The issue turned out be how was requiring the file, it wasn't actually an Ember thing. More details here.
At this point I have been writing test and working with the Twitter API to gather some data that is needed for that app. One of the real wins for Ember and other Javascript frameworks is the separation of concerns. I am able to work on the Rails database without concerning myself with the Front-End and vice versa.
My overall experience with the Rails API gem, not only am I able to throw an api together rather quickly with scaffolding. It also sets up some simple controller test to assert true, unfortunately they were written in Minitest. I am not aware if they could be scaffolded into Rspec as of yet, as this is my first Rails API project and I didn't setup rspec-rails yet, but have decided just to follow through with Minitest DSL for this.
The coolest thing about using this gem is being able to see the JSON data in your localhost with not a lot of effort. I highly recommend this tutorial to get you started using the Rails API gem, feel free to skip the Ember stuff if that doesn't excite you.
I am not finished with my current project, but If you interested in seeing one of my Rails API project live, check out Interpersonal Movie Database.
To get started do the follow:
Some noticeable differences in the way I started this project was I actually started with the Ember's client side application first. I wish I could say it was rather simple but I did have some hang-ups, specially while working with fixtures. The issue turned out be how was requiring the file, it wasn't actually an Ember thing. More details here.
At this point I have been writing test and working with the Twitter API to gather some data that is needed for that app. One of the real wins for Ember and other Javascript frameworks is the separation of concerns. I am able to work on the Rails database without concerning myself with the Front-End and vice versa.
My overall experience with the Rails API gem, not only am I able to throw an api together rather quickly with scaffolding. It also sets up some simple controller test to assert true, unfortunately they were written in Minitest. I am not aware if they could be scaffolded into Rspec as of yet, as this is my first Rails API project and I didn't setup rspec-rails yet, but have decided just to follow through with Minitest DSL for this.
The coolest thing about using this gem is being able to see the JSON data in your localhost with not a lot of effort. I highly recommend this tutorial to get you started using the Rails API gem, feel free to skip the Ember stuff if that doesn't excite you.
I am not finished with my current project, but If you interested in seeing one of my Rails API project live, check out Interpersonal Movie Database.
To get started do the follow:
Subscribe to:
Posts (Atom)
