Skip to content

Files

Latest commit

 

History

History
97 lines (51 loc) · 2.75 KB

README.md

File metadata and controls

97 lines (51 loc) · 2.75 KB

This is a fork of Nós.vc

Nós.vc is a crowdlearning plataform for inspiring encounters. We're using it to organize the courses on Matehackers.

For the original project see http://github.com/engageis/nos.vc

Development environment

You'll need RVM to isolate your development environment.

Make sure you install Ruby 1.9.3 on your RVM.

Install rbenv and ruby 1.9.3

The project is now using rbenv. You can install ruby 1.9.3 with rbenv install.

  1. Follow the instructions here to install rbenv

  2. Make sure you have the packages pkg-config build-essential libmagickcore-dev imagemagick libxml2-dev libxslt-dev libpq-dev libssl-dev libcurl4-openssl-dev installed

  3. Follow the instructions here to install ruby-build as an rbenv plugin.

  4. Run rbenv install 1.9.3-p194 the most up to date ruby version for this project is always in the file .ruby-version.

Checking out and running the code

Then just checkout the code, configure dependencies and run the tests:

  1. Clone the repository:

git clone git://github.com/matehackers/nos.vc.git

  1. Enter the repo directory

  2. Install Bundler:

gem install bundler

  1. Refresh the rbenv ruby binaries

rbenv rehash

  1. Install all dependencies from Gemspec:

bundle install

  1. Copy config/database.sample.yml to config/database.yml and create the catarse_development database

  2. Initialize the database

bundle exec rake db:create

bundle exec rake db:migrate

  1. Run the server

bundle exec rails s

Production environment

To deploy on heroku, you will need to install the "memcachier" addon: heroku addons:add memcachier

Without this addon you may get the error "undefined method `split' for nil:NilClass", since the ENV["MEMCACHIER_SERVERS"] variable will be nil.

Running tests

  1. Go to app folder

    cd nos.vc

  2. Prepare the database

    bundle exec rake db:test:prepare

  3. Run the rspec

    rspec spec/

Contributing

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

Thanks

To Catarse's code. To the people at Engage and the original Nós.vc code.

License

Copyright (c) 2012-2013 Engage and Nós.vc

Licensed under the MIT license (see MIT-LICENSE file)