The web app for Survival's donation system.
Run the one-off setup script (Beware: Needs permissions to access the credentials repo):
. scripts/setup.sh
This script will:
- download the last jasmine release for the JS tests in a
temp
directory - unzip it and copy the
lib
folder inside of thepublic/js/
folder - delete the
temp
directory - download the credentials
- run
npm install
to install the node packages - run
bundle install
to install gems. - run
bundle exec rake
to run the tests.
The Jasmine setup script can also be used to update to a newer version of the library.
bundle exec rackup
Then visit localhost:9292
in your browser.
. test.sh
bundle exec rspec path/to/test/file.rb
bundle exec rspec path/to/test/file.rb:TESTLINENUMBER
Run:
npm test
and then visit: http://localhost:9292/js/specrunner.html
Run:
npm test
and then visit: http://localhost:9292
Please check out our contribution guides and our code of conduct