Tests and Tools

This is a premium course, which you can purchase below.

Buy Now

Rails gives you a ton of utility, but I like doing things my own way. In this video, we'll set up Make, our scripts directory (which we'll use later), and a .env file for our secrets


Not so much code in this one, but some shortcuts:

mkdir scripts
touch .env
touch Makefile

The Makefile itself is pretty sparse, but you'll add to it as you need. The idea is to put things here that you run often, like starting the server, running tests, etc.

run:
  bin/serve

test:
  rails test

.PHONY: run test