When you look at the logs of your application in development, they may appear clear and concise to you (probably not thou), but when you are looking at the production logs and there are many simultaneous requests, sometimes it is difficult to know exactly what like of the log is the next entry, or what…
Tag: rails
5 easy steps to implement JWT (Javascript Web Token) authentication for your API Only Rails apps
If you are writing an API only rails app, your clients will need to authenticate in some way to use your API, you have of course many options to choose from: You can build your own authentication You can Use a plugin like Devise You can use OAuth both accepting other provider or implementing your…
6 reasons to stop using REST and start using GraphQL
Following up the post about a Rails API only app, lets talk about why you should not use REST in your API app. 1: too much unneeded information Have you ever written a client application to any API? And when you did it, was there a query you needed to do that returned a lot…
API only app? use rails and be happy!
Sometimes we need to create only an API, an application without a user interface, for example if you’ll have someone else built later a mobile client for that API, or even a full SPA web client, there are many reasons to build an API only app. And since there are that many reasons, rails helps…
How to use docker to have an uniform development environment for your rails project
Lets say you work on a company, and there is more than one developer at the company, and sometimes other developer is hired and need to configure the development environment. Or maybe you work on an opensource project and you want to make the life of anyone that is contributing to the project easier. Or…
Quick and Dirty introduction to ActionCable – the best WebSockets for Rails!
This post is a followup and a translation of my presentation from “The Developers Conference Florianopolis 2018” What are WebSockets good for? Update the screen of many clients simultaneously when the database is updated Allow many users to edit the same resource at the same time Notify users that something happened Among many other things….
How to improve Rails testing speed using Git
I did a presentation in 2018 RubyHACK and will do the same presentation in 2018 TheConf called “Put Git to work: increase the quality of your project, and let git do the boring work for you”, one of the subjects in the presentation is how to use git to run tests only for the changed files…
Git + Lazyness = happy Rails developer
I had some problems that you probably have too, if you are a ruby developer that works in a team… Check if you have at least one of these problems: Someone commits something that does not passes the test suit Someone have deployed a version of the rails application without precompiling assets Similar to the…