Skip to content

cubewhiz/worldcubeassociation.org

This branch is 6422 commits behind thewca/worldcubeassociation.org:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5f3887f · Aug 23, 2018
Aug 23, 2018
Aug 12, 2018
Jan 31, 2017
Aug 12, 2018
Oct 17, 2017
Aug 1, 2018
Dec 18, 2017
Apr 27, 2015
Aug 12, 2018
May 5, 2017
Apr 23, 2015
May 5, 2017
May 21, 2018
Sep 10, 2015
May 21, 2018
Feb 12, 2018
Aug 7, 2016

Repository files navigation

worldcubeassociation.org Build Status Coverage Status

This repository contains all of the code that runs on worldcubeassociation.org.

Setup

  • git clone https://github.com/thewca/worldcubeassociation.org - Clone this repo! (And navigate into it, cd worldcubeassociation.org)
  • (cd WcaOnRails; bundle install && bundle exec pre-commit install) && git config pre-commit.ruby "scripts/ruby_in_wca_on_rails.sh" - Set up git pre-commit hook. Optional, but very useful.

Run directly with Ruby (lightweight, but only runs the Rails portions of the site)

  • Set up mysql with a user with username "root" with an empty password.
    1. cd WcaOnRails/
    2. bundle install && bin/yarn
    3. bin/rake db:load:development - Download and import the developer's database export.
    4. bin/rails server - Run rails. The server will be accessible at localhost:3000
  • Run tests. Setup instructions follow before_script in .travis.yml.
    1. RAILS_ENV=test bin/rake db:reset - Set up test database.
    2. RAILS_ENV=test bin/rake assets:precompile - Compile some assets needed for tests to run.
    3. bin/rspec - Run tests.
  • Mailcatcher is a good tool for catching emails in development.

Run in Vagrant (gets everything working, but is very slow, recommended only if you need to run the PHP portions of the website)

Production

See Spinning up a new server and Merging and deploying.

About

All of the code that runs on worldcubeassociation.org

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 51.8%
  • PHP 18.7%
  • HTML 16.6%
  • JavaScript 7.4%
  • CSS 3.7%
  • Shell 1.8%