jeffkamo / oscar-tracker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

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.


Ruby version

I set this up with 2.7.2p137

Database creation

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).

Database initialization

Run the Postgres desktop app on Mac OS.

Deployment instructions

Automatically deploys to Heroku using Github actions. Just push or merge to main branch to trigger the deployment process.

Hosting Info

Hosted on Heroku in my personal account in a project called oscar-tracker.

https://oscar-tracker.herokuapp.com/

About


Languages

Language:Ruby 69.1%Language:HTML 21.4%Language:JavaScript 7.0%Language:CSS 1.4%Language:SCSS 1.1%