An app for tracking our puppy Oscar's dietary and financial needs!
This was a super quick and dirty hackathon project to see if I knew Rails basics enough to get something stupid simple up and running quickly. Also to see if I could get it deployed to Heroku easily, AND to get it working with Github Actions.
Mission accomplished.
I'll probably stick with my original Google Sheets version of this, as it already works and has lots of historical data I don't feel like duplicating here.
I set this up with 2.7.2p137
rails db:create
I noticed that if DATABASE_URL
is set prior to setting up the Database, then it will fail to create the development database because it treats the DATABASE_URL
as a remote location, which it cannot use locally. Such an error may appear like...
PG::ConnectionBad: could not translate host name "jeffkamo" to address: nodename nor servname provided, or not known
If this happens, run unset DATABASE_URL
and try creating the database again (ex. rails db:create
).
Run the Postgres desktop app on Mac OS.
Automatically deploys to Heroku using Github actions. Just push or merge to main
branch to trigger the deployment process.
Hosted on Heroku in my personal account in a project called oscar-tracker
.