Set up a new Ruby on Rails project

Written by
Juan Gallardo
Published
Last updated

Table of Contents

Article 1 in [Series: Build a blog with Ruby on Rails] Next: Phlex components

1. The rails new command

Let’s omit a few features we might never need.

1
2
3
4
5
6
7
8
9
rails new xolux \
--name=app \
--database=postgresql \
--edge \
--css=postcss 
--skip-docker --skip-kamal \
--skip-action-mailer --skip-action-mailbox \
--skip-test --skip-system-test \
--skip-ci \

Explanation:

2. Don’t commit your IDE files to VCS

# /.gitignore

# Ignore NetBrains IDE config files
.idea/

3. Set up a database

Run ./bin/setup to set up the development database