This is the software running at servethecity-karlsruhe.de used for managing actions and volunteers during an action week of Serve the City Karlsruhe. It's written using Ruby on Rails.
Do you want to improve this platform? Or do you want to start Serve the City in your city and are looking for a platform to use? Please contact us - we would love to share and work with you!
Shell commands for Ubuntu/Debian
Install RVM
$ gpg2 --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
$ \curl -sSL https://get.rvm.io | bash -s stable
Install PostgreSQL
$ sudo apt-get install postgresql libpq-dev
Install JS runtime
# For example:
$ sudo apt-get install nodejs
Clone repository
$ git clone https://github.com/matthias-g/stc-karlsruhe.git
$ cd stc-karlsruhe/
Install Ruby
$ rvm install $(cat .ruby-version)
Install Bundler
$ gem install bundler
Install gems
$ bundle install
Setup PostgreSQL
<<your username>>@host:~$ sudo -u postgres -i
postgres@host:~$ psql -d postgres
postgres=# create role <<your username>> login createdb;
Setup databases
$ rake db:setup
Start server
$ rails s
Run tests
$ rails spec
$ rails test
$ rails test:system