- Download the source, and npm i
- Install Ruby ^2.5.3, we suggest using RVM
- Install Rails 5.2.1, run 'gem install rails -v 5.2.1'
- Run 'bundle install', you will need Bundler
- Install Postgres using Homebrew, run 'brew install postgres'
- Start postgtress, run ' pg_ctl -D /usr/local/var/postgres start'
- Run rake db:create && rake db:migrate
##Initial Set up for Windows
-
Download the source, and npm i
-
From the control panel > programs(apps) and features > Turn Window Features On and Off, set Use Windows Subsystem for Linux on
-
Install the Ubuntu subsystem available
-
Install Ruby follow the instructions here ( https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-18-04 ) steps 1- 3 to install Nodejs, Ruby -Skip the prereq step about server setup
-
Install Postgress follow the instructions here ( https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-18-04 ) steps 1 - 5
-
Run 'bundle install' -If you have issues with the pg gem see this article ( https://www.digitalocean.com/community/questions/gem-install-pg-not-working )
-
Run 'sudo service postgresql start"
-
Run 'rails db:create && rails db:migrate && rails db:seed'
- Run
rails c
- Run
rails s
npm run start-mac
npm run start-ubuntu
- Run
rails c
user = User.find_by_email('email_address')
user.admin = true
user.save
- If any of steps 4-5 fail under "How do I run it?", try:
docker exec -it magic-league_web_1 //bin/sh -c "rake db:create && rake db:migrate"
- The name of the web container docker brings up should be called
magic-league_web_1
. If docker cannot locate this container in the above command, trydocker ps
and looking for the name of the container using port 3000.
For the most part theme colors are now derived from a short list of css custom props, in the color-library style sheet. Updating these colors should cascade down to the entire site.
- neutral
- fill: the background of interaction areas where we generally expect text or icons to be overlayed, ex: buttons, tabs, etc..
- text: the color of text laid on top of neutral-fill. (Currently, but not neccesarily derived from inverse-fill, see below)
- theme
- theme-fill: brighter highlight color meant to signify higher priority user interactions, ex: primary ctas
- theme-text: color used for editorial text or to indicate text with user interactions, ex: links
- inverse:
- fill: The background of non-interaction areas such as the background of a table cell. This color should be very different from nuetral, eg: nuetral: black, inverse: white
- text: the color of text laid on top of inverse-fill. (Currently, but not neccesarily derived from neutral-fill)
In addition to these we have several colors are mainly independent of theme and meant to signify more semantic use.
- urgent: alerts, calls to attention
- negative: errors, more critical cancel actions
- positive: success, more critical accept actions
Spacersare a set of css custom props that are used for internal paddings and margins, ie button padding, but not page layout margins.
They are responsive, although currently only updating at our mobile-ish breakpoint.