Code for Buenos Aires es un programa apoyado por Code for All cuyo objetivo es promover la transparencia, los datos abiertos y la tecnología cívica en la Ciudad de Buenos Aires.
Somos un grupo de ingenieros, innovadores, programadores, diseñadores, comunicadores, periodistas y entusiastas cívicos que nos reunimos para crear aplicaciones útiles para los ciudadanos usando código abierto.
You can modify the pre-push.sh script to run different scripts before you git push (e.g Rspec, Linters). Then you need to run the following:
chmod +x script/pre-push.sh
ln -s ../../script/pre-push.sh .git/hooks/pre-pushYou can skip the hook by adding --no-verify to your git push.
- Clone the repository by running
git clone git@github.com:Wolox/codeforbuenosaires.git - Go to the project root by running
cd codeforbuenosaires - Download and install Rbenv.
- Download and install Ruby-Build.
- Install the appropriate Ruby version by running
rbenv install [version]whereversionis the one located in .ruby-version
- Install Bundler.
gem install bundler --no-ri --no-rdoc
rbenv rehash- Install basic dependencies if you are using Ubuntu:
sudo apt-get install build-essential libpq-dev nodejs- Install all the gems included in the project.
bundle -j 20Run in terminal:
sudo -u postgres psql
CREATE ROLE "codeforbuenosaires" LOGIN CREATEDB PASSWORD 'codeforbuenosaires';Log out from postgres and run:
bundle exec rake db:create db:migrateYour server is ready to run. You can do this by executing rails server and going to http://localhost:3000. Happy coding!
If you want to deploy your app using Heroku you need to do the following:
- Add the Heroku Git URL to your remotes
- Push to heroku
- Run migrations
git remote add heroku-prod your-git-url
git push heroku-prod your-branch:master
heroku run rake db:migrate -a your-app-nameYou can find more documentation in the docs folder
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Run rspec tests (
bundle exec rspec spec -fd) - Run scss lint (
bundle exec scss-lint app/assets/stylesheets/) - Run rubocop lint (
bundle exec rubocop app spec -R) - Push your branch (
git push origin my-new-feature) - Create a new Pull Request
See LICENSE.md