Skip to content

ruby

Test Redis with Generated Data

Recently I need to test out Redis integration with a Ruby on Rails application. I wanted to test how fast Redis is with 1GB of data.

Instead of manually generating dummy data, I recalled using the Faker library a couple of years ago during my time as a full-stack developer.

React and Ruby Docker Development Environment

Background

Lately I am working on a project to dockerize an e2e application with React as the front end and Ruby on Rails as the backend. I would like to set up a docker-compose file so that:

  1. user can bring up the e2e environment with a single command
  2. the environment supports hot reload of code for both the React and Ruby on Rails parts
  3. it can be served as a testing environment for e2e test
  4. developers can run manual test in a local environment