Skip to content

andrewmcodes-archive/rails_template

Repository files navigation

Ruby Style Guide

README

My personal Rails starter template that I use for blog posts.

Install

Clone the repository

git clone git@github.com:andrewmcodes/rails_template.git
cd project

Update app name

Navigate to config/application.rb and change AndrewmcodesTemplateApp to whatever the name of your app is.

Do the same in config/database.yml

Dependencies

  • Ruby 2.7
  • Node 13.7.0
  • Rails 6.0.2.1
  • Webpacker 4.2.2
  • TailwindCSS 1.2.0
  • psql (PostgreSQL) 12.1

Install dependencies

Using Bundler and Yarn:

bundle && yarn

Initialize the database

bin/setup_db

Serve

rails s

If you want to run the webpack-dev-server and livereload, run this in another tab:

bin/guard