☕️ Bamboofox CTF training platform
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor
.gitignore
.rubocop.yml
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

bamboofox-website

build status

Requirements

sudo apt install imagemagick
sudo apt install libmysqlclient-dev

Ruby and Rails versions

Ruby 2.4.0 or newer Rails 5.1.0 or newer

Installation

bundle install
rake db:migrate

Running

rails server

See on http://localhost:3000

Deploy

Reference config/application.yml.example

Create config/application.yml

Setup seed data and compile assets

bundle install
RAILS_ENV=production rake db:reset DISABLE_DATABASE_ENVIRONMENT_CHECK=1
RAILS_ENV=production rake assets:precompile

Tests

Run RuboCop

rake rubocop

Auto-correct RuboCop offenses

rake rubocop:auto_correct

Run Rails Best Practice

rake rails_best_practices

Format erb files

find . -name '*.erb' | xargs htmlbeautifier