Scientific application development made easier
PlgApp is a platform for hosting lightweight web applications using PL-Grid high performance computing infrastructures.
- MRI 2.2.x
- postgresql, libpq-dev
- ImageMagic or GraphicsMagic
Install required gems:
bundle
Create databases:
bin/rake db:create db:migrate db:seed db:test:prepare
Make sure that puma configuration is in place and configured
cp config/puma.rb.example config/puma.rb
edit config/puma.rb
User app is able to connect into Rimrock, Datanet and PlgData. To avoid MitM attack we verify these services certificates (signed by Terena). To install Terena certificates execute following commands:
cd /etc/ssl/certs
sudo wget https://www.terena.org/activities/tcs/repository/AddTrust_External_CA_Root.pem
sudo wget https://www.terena.org/activities/tcs/repository/UTN-USERFirst-Hardware.pem
sudo wget https://www.terena.org/activities/tcs/repository/TERENA_SSL_CA.pem
sudo c_rehash .
Foreman is responsible for starting 2 processes: web serwer and delay jobs serwer (sidekiq).
foreman start
To execute all tests run:
bin/rspec
Use guard to execute tests connected with modified file:
guard
To execute karma tests run:
bundle exec rake karma:test
To run interactive karma test engine (which will retest every time a test or code is changed) run:
bundle exec rake karma:run
- Fork the project
- 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