Skip to content
Capture The Flag (CTF) dashboard 🚩
Branch: master
Clone or download
Abdulwahaab710 Bump rubocop-rspec from 1.32.0 to 1.33.0 (#238)
Bump rubocop-rspec from 1.32.0 to 1.33.0
Latest commit 8b40e84 May 29, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.dependabot Added dependabot config Mar 20, 2019
app Update Apr 7, 2019
bin fixing style May 14, 2018
config Enabling harmony mode for uglifier Apr 7, 2019
db db migrate Mar 24, 2019
public added a helper function to return the ctf logo and added a default logo Apr 12, 2018
spec Fixing start_time counter Mar 25, 2019
vendor/assets rails app init Oct 18, 2017
.gitignore Adding the ability to add/upload files for challenges Aug 14, 2018
.rubocop.yml Ignore factories.rb Aug 4, 2018
.travis.yml Changing ruby version for travis CI to 2.6.2 Mar 25, 2019
Dockerfile Fixing dockerfile Mar 25, 2019
Gemfile Bump factory_bot_rails from 4.11.1 to 5.0.1 Apr 7, 2019
Gemfile.lock Bump rubocop-rspec from 1.32.0 to 1.33.0 May 21, 2019
Guardfile fixing style May 14, 2018
Rakefile fixing style May 14, 2018 fixing style May 14, 2018
docker-compose.yml Using ENV vars for DB creds and pinning the images Apr 22, 2019
nginx.conf Added nginx conf Jul 7, 2018


Build Status Dependabot Status codecov

CTFDashB is a Capture The Flag dashboard.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


Before we start you will need to have docker and docker-compose installed. You can download Docker Community Edition (CE) from here, which includes docker-compose.


  1. Clone the git repo
git clone
  1. cd into the folder and create a dotenv file, like the following
# CTFDashB/.env
DATABASE_PASSWORD=S0ME_RANDOM_PASSWORD # you can use ruby generate the password ruby -e "require 'securerandom'; puts SecureRandom.hex()

if this is for production, you will have to set the RAILS_ENV to be like the following

# CTFDashB/.env
  1. Build the containers
docker-compose build
  1. Create the database, run Migration and seed the database
docker-compose run web rake db:create db:migrate db:seed
  1. Run the application
docker-compose up

Running the tests

To run tests

docker-compose run web bundle exec rspec

And coding style (rubocop)

docker-compose run web bundle exec rubocop

To auto fix the violiation for rubocop

docker-compose run web bundle exec rubocop


Add additional notes about how to deploy this on a live system


This project is licensed under the MIT License - see the file for details

You can’t perform that action at this time.