Askalot CQA System of Next Generation
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/controllers
bin
components
config
db
lib
log
public
spec
.bump
.codeclimate.yml
.gitignore
.rspec
.ruby-version
.travis.yml
Capfile
Gemfile
Gemfile.lock
LICENSE.md
README.md
Rakefile
config.ru

README.md

Askalot

Askalot is a CQA (Community Question and Answer) system of next generation.

Build Status Maintainability Test Coverage

Requirements

  • Ruby 2.4
  • Rails 4.2
  • PostgreSQL 9.3
  • Elasticsearch 1.7

Installation

Clone and install.

git clone git@github.com:teamnaruby/askalot.git
cd askalot
bundle install

Copy and edit configuration files.

cp config/configuration.{yml.example,yml}
cp config/database.{yml.example,yml}
cp config/newrelic.{yml.example,yml}

There are two types of environments: university and mooc which are currently implemented as fiit and edx environments. You have to use this as suffix to standart development, test, staging, demo and production environment.

Create database, load schema and seed the database.

RAILS_ENV=fiit_development rake db:create db:structure:load DB_STRUCTURE=components/university/db/structure.sql db:seed
RAILS_ENV=edx_development rake db:create db:structure:load DB_STRUCTURE=components/mooc/db/structure.sql db:seed

Testing

Run specs with:

RAILS_ENV=fiit_test rake db:create db:structure:load DB_STRUCTURE=components/university/db/structure.sql
RAILS_ENV=fiit_test bundle exec rake rspec:test
or
RAILS_ENV=edx_test rake db:create db:structure:load DB_STRUCTURE=components/mooc/db/structure.sql
RAILS_ENV=edx_test bundle exec rake rspec:test

Tests will run either shared+university or shared+mooc tests.

The mapping of environments to the engines is in the config/environment.yml.

Contributing

  1. Fork it.
  2. Create your feature branch (git checkout -b new-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin new-feature).
  5. Create new Pull Request.

License

This software is released under the MIT License.