I don't really remember how to Rails. I miss Rails. I miss Ruby. Therefore, I'm derping with it. ❤️
Current status of derping is just going through Michael Hartl's tutorial. (This is kind of the Rails tutorial.) Here's where I've left off.
Or, if future-Matt comes along and has forgotten how to derp with Rails...
bundle install
: Install the dependencies! We're in the beautiful land of Ruby, so instead ofnode_modules
, these beauties are calledgems
. 🙂 Check outGemfile
. It's likepackage.json
.rails db:create
: Create the development database! (This will create an instance of a sqlite3 database.)
- Or, if you are starting over:
rails db:reset
: This will drop the entire database before creating it.
rails db:migrate
: Run the migration file to create theusers
table! (Look insidedb/migrate/
to find the single migration file.)rails db:seed
: Create some initial users. (This runsdb/seeds.rb
.)rails server
: Start up the app!
- You should see something like:
- Listening on http://127.0.0.1:3000
- Go to the address where your app is running! You did it, maybe!