lucatironi.net Code snippets, tutorials and stuff

Hi, I'm Luca!
I've been writing code for a long time for hobby and for work.
These are some of the things that I learned and I'd like to share.


(Updated) Use docker-compose to develop a Ruby on Rails application

I updated the tutorial and the code from last year on how to use Docker and docker-compose to bootstrap and develop a Rails application without even have ruby installed on your development machine.

Using Rails 5, Docker and docker-compose to build an authenticated JSON API with warden

In the last few months I experimented a lot with Docker and docker-compose. I wanted to spin up a development enviroment with it and I used my previous tutorial as a base app to run. To do so I updated it to the latest Rails - 5.0.0.1 - and refactored a bit the spec.

Using rails-api to build an authenticated JSON API with warden

Two years ago I published a series of tutorials to explain how to build a JSON API with Ruby on Rails and setting up an authentication with Devise. This new tutorial uses a test driven approach (RSpec) and rails-api with warden, so we can now build the same backend with even less code.

Jekyll Static Website with Continuous Deployment/Delivery to S3/Heroku

Jekyll - the Static Website generator gem - can be extendend to use a Rails-like assets pipeline to develop even complex Single Page Applications and can be configured to be automatically deployed to a public S3 bucket and/or to Heroku, using a Continuous Deployment/Delivery service like Codeship.io

Ruby on Rails and RubyMotion Authentication Part Two

The second part of the RubyMotion tutorial will guide you to complete the ToDo example app with all the features like tasks display, task creation and completion.

Source code for the authentication tutorials

Following several requests, I've decided to publish the revised code that I used to write the previous tutorials.

Ruby on Rails and RubyMotion Authentication Part One

Using the same backend we developed in the previous tutorials, I'll guide you through the coding of an iOS (iPhone) app using Rubymotion that will use the same JSON API as the Android app.
UPDATED on May 15th

Ruby on Rails and Android Authentication Part Three

I wanted to add some more features to the Android app and its Rails backend. Now the user can create and complete tasks just like in a real ToDo mobile application.

Ruby on Rails and Android Authentication Part Two

The second part of the tutorial will let you code an Android app that uses the JSON authentication API developed in the previous tutorial.

Ruby on Rails and Android Authentication Part One

In this three-part tutorial you'll learn how to build an authentication API that can allow external users to register, login and logout through JSON requests, with Ruby On Rails.