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
You'll need RVM to isolate your development environment.
Make sure you install Ruby 1.9.3
on your RVM.
The project is now using rbenv. You can install ruby 1.9.3 with rbenv install.
-
Follow the instructions here to install rbenv
-
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 -
Follow the instructions here to install ruby-build as an rbenv plugin.
-
Run
rbenv install 1.9.3-p194
the most up to date ruby version for this project is always in the file.ruby-version
.
Then just checkout the code, configure dependencies and run the tests:
- Clone the repository:
git clone git://github.com/matehackers/nos.vc.git
-
Enter the repo directory
-
Install Bundler:
gem install bundler
- Refresh the rbenv ruby binaries
rbenv rehash
- Install all dependencies from Gemspec:
bundle install
-
Copy
config/database.sample.yml
toconfig/database.yml
and create thecatarse_development
database -
Initialize the database
bundle exec rake db:create
bundle exec rake db:migrate
- Run the server
bundle exec rails s
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.
-
Go to app folder
cd nos.vc
-
Prepare the database
bundle exec rake db:test:prepare
-
Run the rspec
rspec spec/
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
To Catarse's code. To the people at Engage and the original Nós.vc code.
Copyright (c) 2012-2013 Engage and Nós.vc
Licensed under the MIT license (see MIT-LICENSE file)