Skip to content
Magic: The Gathering card tracker.
CSS Ruby HTML JavaScript Dockerfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
vendor
.browserslistrc
.dockerignore
.eslintrc.json
.gitignore
.haml-lint.yml
.rubocop.yml
.ruby-gemset
.ruby-version
.sass-lint.yml
.tool-versions
Dockerfile
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
babel.config.js
config.ru
docker-compose.yml
package.json
postcss.config.js
yarn.lock

README.md

Card Tracker

A Magic: The Gathering inventory/collection tracker.

Ruby Version

2.6.4

Rails Version

6.0.0

Dependencies

Local Development Installation

Clone the repository.

$ git clone git@github.com:seaneshbaugh/card_tracker.git card_tracker

cd into the project directory.

$ cd card_tracker

Start the Docker containers.

$ docker-compose up -d --build

Create the development and test databases.

$ docker-compose run --rm web rails db:create

Load the database schema.

$ docker-compose run --rm web rails db:schema:load

Seed the database.

$ docker-compose run --rm web rails db:seed

Importing Card Data

To import set data:

$ docker-compose run --rm web bundle exec rake import:sets

To import card data for an individual set:

$ docker-compose run --rm web bundle exec rake import:cards\[LEA\]

To import card data for multiple sets:

$ docker-compose run web bundle exec rake import:cards\[LEA,LEB,INV\]

Note: The backslashes are required if you're using Zsh. Bash does not require them.

To import card data for all sets (this will also by necessity import all set data):

$ docker-compose run --rm web bundle exec rake import:all

Troubleshooting

Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 11.x

If you update /package.json and run yarn install on the host machine it will overwrite the contents of /node_modules and in the process will rebuild Node Sass for the host machine. If the host machine is not the same OS as the Docker container you will see this error. This can be fixed by running docker-compose run --rm web yarn install --force and then restarting the web container.

no space left on device

This happens from time to time. Dead containers and unused images can be cleaned up with:

$ docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
$ docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs docker rmi

Deploying

More on this later!

Linting

Ruby

$ rubocop

HAML

$ haml-lint

SCSS

$ yarn run sass-lint --verbose --no-exit --config .sass-lint.yml

Contacts

You can’t perform that action at this time.