Soon to be Ruby on Rails --API programmer

What's this about?

Building API could be fund with Ruby on Rails. Let Rails help you with easy and fast coding while you only need to worry about requirements and features.

If you want to start building your new web application and you picked to completely separate Client side and Server side codes completely. Then it's a high chance that you need to build API regardless of what you picked for your frontend.

I've used Ruby on Rails in my software house since 2011 and personally think that it is more than enough for most of my customers.

Now that Ruby on Rails has this "--api" option where you only use Rails to build API. No HTML, CSS, JS rendered from backend (except for emails). I only use this "--api" option for newer projects and moved my frontend to use NuxtJS, NextJS or AngularJS.

My life is now much simpler because I can now separate task between frontend and backend. My team work more effectively, and even better unit test.

This book is to show you how to write API on Rails. It's purely based on code and building prototype application.

This book will not cover Unit Test, I think it's better to start with the fun part and continue with the boring part in the next book.

You'll Learn


SaKKo Sama

I'm a self taught programmer with over 10 years experience.

I joined Leanpub to share my knowledge and experience.

I started my own company, a software house, in the year 2010.

I coded lots of projects throughout those years trying out lots of stuffs like

ObjectiveC, Ruby on Rails, Nodejs, Swift, Java, Kotlin, Dart, Golang, ionic, react-native, Vue, React, ....

Deployed them on a bunch for infrastructures

Bare Metal, Government Cloud, VPS, Digital Ocean, AWS, Google Cloud Platform, and on some Serverless arch

Taught Internet Programming to 70+ students in University as part-time lecturer in Thailand.

Trained over 100+ people in iOS Basic and Advance courses ages ago when there were no Swift.

Taught high school math for a year, 36 hours a week.

My dream is to start a school where all students can do what the love. (and not hate Math)

Obviously, it takes a lot of money to start a school. If you can fund me a few million $ to start a school in Thailand, Please contact me.

I hope you enjoy my books.

Visit my youtube channel at