Notes about programming

Make it Secure 2, GraphQL by Rails and Devise

This is the second post about securing Rails GraphQL API app. Most of conceptual explanations are in the previous post, Make it Secure, GraphQL by Rails. This memo is focusing on how to add the authentication using Devise gem (

Make it Secure, GraphQL by Rails

These days, attacks on a web application becomes more and more common. Every web application should be protected to get rid of such attacks. Ruby on Rails provides ways to make it secure out of the box. Additionally, well-used gems in Rails world, such as Devise (, give us convenient ways to protect the Rails app.

Getting Started GraphQL Using Ruby on Rails

GraphQL is an API standard to provide resources on the server-side to various types of clients. GraphQL itself is a specification and doesn’t provide an implementation. For Ruby on Rails, GraphQL Ruby is the most popular library.

Rails App Creation with Options

The easiest way to create a Ruby on Rails app is absolutely to hit the command:

Datomic Quick Start in 2023

I used to use Datomic,, a lot. Datomic is a unique database. The most attractive feature would be the idea of preserving transactions. Based on the transaction id, Datomic is able to pull out the past data which has been already updated later.