Setting Up a New Rails Project in 2019

I might eventually turn this into a template but for now just keeping notes for myself On Github: Create Github repo, do NOT initialize with README, get ssh for project. (git@github.com:harrisjb/<project-name>.git) On my machine: rails new <project-name> –api –database=postgresql git remote add origin git@github.com:harrisjb/<project-name>.git Create DB: rails db:create Gems: bundle install Create PSQL user, role create role <project-name> with superuser createdb login; grant all privileges on database “<project-name>_development” to <psql-user>;