Start a new Rails app (v6)
Go to my code/active folder
Create the Rails app with postgres
Also use -T to prevent rails from installing the default Testing framework (assuming I want to use RSpec)
cd to the project directory
Create the database
Open the project in Sublime Text, then save it as a Project to reopen later
Open the current project in Sublime:
One the project is open in Sublime, go to Project > Save Project as..., then save this project in ~/code/Sublime Text Projects.
Initialize Git
Set up the repository in GitHub
Log into my github.com account
"Create New Repository"
Name it the same as my projectname
Get commands from the instructions under "...or push an existing repository from the command line."
Refresh github. I should now see all my project files shown in github.
Save this database in my db viewer on Mac (TablePlus)
host: localhost username: briancasel password: emma database_name: Find this in config/database.yml around line #26 port: 5432
Install Hotwire (turbo JS + stimulus JS)
Add this to the gemfile, then run bundle
Then run:
In the application head, update these lines from turbolinks
to turbo
so that they read like this:
Last updated