This is the second post of a series of four where I’ll show the main steps I followed to build Flashcards, a single page app that will help users study and learn any subject they want through spaced repetition. The back-end is a Rails app that will store the information provided by the users.
Showing posts with label rails. Show all posts
Showing posts with label rails. Show all posts
Thursday, February 15, 2018
Build an app with Rails and React - User authentication
This is the second post of a series of four where I’ll show the main steps I followed to build Flashcards, a single page app that will help users study and learn any subject they want through spaced repetition. The back-end is a Rails app that will store the information provided by the users.
Integrating Social Login in a Ruby on Rails Application

It was a boring and tedious process to repetitively enter the same information over and over again on each website's registration page. Times have changed and so has the way people use their preferred websites and services.
Ruby On Rails Instrumentation With InfluxDB and Grafana

In this article we are going to implement a simple way to visualize what is going on in a Rails application. Tracking certain metrics can be a great help to discover bottlenecks.
Sunday, January 28, 2018
Unicorn / Monit setup
unicorn #!/bin/sh set -e # Example init script, this can be used with nginx, too, # since nginx and unicorn accept the same signals # Feel free to change any of the following variables for your app: TIMEOUT=${TIMEOUT-60} APP_ROOT=/path/to/your/app/current PID=$APP_ROOT/tmp/pids/unicorn.
Saturday, August 26, 2017
Eager Loading Polymorphic Associations with Ruby on Rails
Efficiently eager loading polymorphic associations to avoid the 'n-plus-one' queries can be a challenge. Consider the following example: Attempting to eager load the authors or directors for the books or films is slightly more challenging.
Wednesday, July 12, 2017
Upcoming built-in upload Solution for Rails 5.2 (ActiveStorage)
Most simple upload solutions - such as ActiveStorage, and old ones such as the original Paperclip and the vanilla install of Carrierwave - basically set the HTML form as a multipart and add a vanilla HTML file field.
Saturday, June 24, 2017
Elasticsearch with Ruby on Rails
Encrypting my life... Itay Grudev lives in Aberdeen, United Kingdom and also writes at https://itay.grudev.com.
Thursday, June 22, 2017
JWT Auth in Rails, From Scratch
In an earlier post, we took a look at JWT authentication in Rails, and implemented a JWT authentication system using the Knock gem. Here, we'll drop down a level and re-build our JWT authentication system from scratch, without the help of the Knock gem.
JWT Authentication with React + Redux
As part of my ongoing attempts to can has React + Redux, I spent some time yesterday building authentication flow into my CatBook React/Redux app, using JWT.
Sunday, June 18, 2017
Using Docker Compose for Ruby Development
Docker is an amazing tool for developers. It allows us to build and replicate images on any host, removing the inconsistencies of dev environments and reducing onboarding timelines considerably.
Thursday, June 8, 2017
lynndylanhurley/redux-auth
You can see a complete working example here. The code for the demo is here. This project comes bundled with a test app. You can run the demo locally by following these instructions, or you can use it here in production.
Sunday, June 4, 2017
Reactive web with Rails, React, SSE and RethinkDB
Pushing changes between the app layers takes a fair amount of web developer's time, that's why modern web framework try to propose solutions for this problem.
On my radar: RethinkDB + React.js + Rails
Sometimes you hear positive things about a technology and you put it on your radar. To explore it when you have some time. To get a feeling if it is fun at all. To mix and match things together to see what comes out of it. For me recently it was RethinkDB .
Publish-Subscribe with RethinkDB
The publish-subscribe pattern is a powerful way to decouple applications that need to communicate. RethinkDB changefeeds allow us to implement publish-subscribe with the database acting as a message exchange.
Action Cable Overview — Ruby on Rails Guides
Action Cable seamlessly integrates WebSockets with the rest of your Rails application. It allows for real-time features to be written in Ruby in the same style and form as the rest of your Rails application, while still being performant and scalable.
Thursday, June 1, 2017
GraphQL and Relay on Rails — dynamic component rendering — Medium
In our previous posts, we looked into basics of GraphQL and Relay and how to integrate it with Rails. We have also built our first react component using Relay to fetch posts on homepage using GraphQL.
GraphQL and Relay on Rails — First relay powered react component
In our previous post, we looked into GraphQL schema and types. We also looked into how to query the Schema to fetch necessary data we need from rails console.
Relay/GraphQL On Rails
Summary: If you are excited about just declaring data required by your UI components while leaving the difficult parts of data fetching, updating, and data handling performance issues to a framework, you will be excited by Facebook’s recent release of Relay/RelayJS (Sep 2015), which works with Rea
Tuesday, May 30, 2017
Migrating from react-rails to Webpacker
As an early React adopter, react-rails was the obvious choice for integrating it into Ruby on Rails, and despite countless Medium posts over the years about the need to switch to Webpack right this minute using some Rube Goldberg machine of a setup, the additional overhead and effort rarely felt w
Subscribe to:
Posts (Atom)
bundlephobia
JavaScript bloat is a more real problem today than it ever was. Bundlephobia lets you understand the performance cost of adding a npm pack...
-
Programmers almost always need the ability to find and replace certain text across multiple files in their projects. Most IDEs provide find ...
-
This is yet another rails stack installation how to. It is useful for installing a production rails hosting environment using Nginx as the ...
-
Git is a Version Control System , it is used to keep a history of all the changes you made into your code, manage releases, makes it easier...