HTTPS SSH

bootleg Bootleg

An Application for distributing digital files with a promo code

Requirements

  • Ruby 2.2.0-p0

Configuration

Secrets

You'll need to add some secret tokens. To generate a secret use SecureRandom or:

rake secret

Rails secrets

Ensure a secrets yaml file is created:

vi config/secrets.yml

Then ensure each environment has a secret_key_base key:

development:
  secret_key_base: Your secret

test:
  secret_key_base: Yet another secret

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

Devise Secret

Ensure devise config file (config/initializers/devise.rb) is set with a secret token: config.secret_key = 'Your devise secret'

Database

To create the database:

bundle exec rake db:create

Then run the migrations to set up the db and seed the database defaults:

bundle exec rake db:migrate
bundle exec rake db:seed

Running the Test suite

bundle exec rake will run the entire test suite bundle exec rspec spec will run the application unit tests.

License

This project is covered by the MIT licence, you can read it here.