Worldcubeassociation.org

All of the code that runs on worldcubeassociation.org
Alternatives To Worldcubeassociation.org
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Chatwoot15,311
20 hours ago1January 03, 2021791otherRuby
Open-source customer engagement suite, an alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬
Portus2,980
4 months ago156apache-2.0Ruby
Authorization service and frontend for Docker registry (v2)
Ciao1,702
a month ago2mitRuby
HTTP checks & tests (private & public) monitoring - check the status of your URL
Astuto1,410
8 days ago41gpl-3.0TypeScript
A free, open source, self-hosted customer feedback tool 🦊
Docker Rails1,069
3 days ago1mitRuby
Dockerize Rails 7 with ActionCable, Webpacker, Stimulus, Elasticsearch, Sidekiq
Railsgoat827
13 days ago37mitHTML
A vulnerable version of Rails that follows the OWASP Top 10
Open Build Service820
20 hours ago1,072gpl-2.0Ruby
Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
Zealot745
6 days ago10mitRuby
开源自部署移动应用和 macOS 应用分发平台,提供 iOS、Android SDK、fastlane 等丰富组件库 | Self-hosted Beta App Distribution for Android, iOS and macOS apps
Docker Rails Example718
3 days ago7mitRuby
A production ready example Rails app that's using Docker and Docker Compose.
Orats685
2 years ago44September 29, 2018mitRuby
Opinionated rails application templates.
Alternatives To Worldcubeassociation.org
Select To Compare


Alternative Project Comparisons
Readme

worldcubeassociation.org Build Status Coverage Status

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

Setup

  • Clone this repo! (And navigate into it)
    git clone https://github.com/thewca/worldcubeassociation.org
    cd worldcubeassociation.org
    
  • Ensure you have the correct Ruby version installed. We recommend using a Ruby version manager like rvm or rbenv. They should both read the .ruby-version file to use the correct version (rvm current or rbenv version to confirm).
  • Ensure Bundler 2 is installed
    • To update from bundler 1:
      gem update --system
      bundle update --bundler
      
    • Or, if you haven't installed bundler previously:
      gem update --system
      gem install bundler
      
  • Set up git pre-commit hook. Optional, but very useful.
    (cd WcaOnRails; bundle install && bin/yarn && bundle exec overcommit --install)
    
    If some changes are made to this hook, you will have to update it running this command from the repository's root directory: BUNDLE_GEMFILE=WcaOnRails/Gemfile bundle exec overcommit --sign.

Run using Docker

  • Install Docker (remember to complete the Linux post-install steps if you're on Linux)
  • Install docker-compose. The best way to get an up-to-date version is to get it from their releases page
  • Navigate into the repository's main directory (worldcubeassociation.org)
  • To start the server at http://localhost:3000, run docker-compose up and to bring it down, docker-compose down (or just press ctrl + c in the same terminal)
  • If you want to run the php part of the website as well, run docker compose -f docker-compose.yml -f docker-compose.php.yml up
  • To run tests, run docker-compose exec wca_on_rails bash -c "RAILS_ENV=test bin/rake db:reset && RAILS_ENV=test bin/rake assets:precompile && bin/rspec"
  • If you're using Visual Studio Code to develop, you can attach it to the Docker container so that your extensions can take advantage of the Ruby environment and so the terminal runs from inside the container

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

  • Install MySQL 8.0, and set it up with a user with username "root" with an empty password. If it poses problems, try the following:
    # Run MySQL CLI as administrator and set an empty password for the root user:
    sudo mysql -u root
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
    
  • Install dependencies and load development database.
    1. cd WcaOnRails/
    2. Install Node.js and yarn, we need them for our javascript assets. Feel free to take a look at our chef recipe for the accurate versions we use and how we install them. Please note that other versions may work, but it is not guaranteed.
    3. Install libyaml using your package manager of choice, eg. Mac or Ubuntu
    4. bundle install && bin/yarn
    5. bin/rake db:load:development - Download and import the developer's database export. Depending on your computer it may take a long time. Alternatively you can run bin/rake db:reset which will create the database and seed it with random data (it's way faster, but less representative of our website content).
    6. bin/rails server - Run rails. The server will be accessible at localhost:3000
  • Run tests.
    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.

Production

See Spinning up a new server and Merging and deploying.

Popular Docker Projects
Popular Ruby On Rails Projects
Popular Virtualization Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Ruby
Docker
Ruby On Rails
Vagrant
Accessibility
Bundler