fastmode / donation-system-webapp

:computer: :iphone: :desktop_computer: Web UI for Survival's donation system

Home Page:https://donation-system-production.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status Dependency Status Maintainability

Readme

The web app for Survival's donation system.

How to use this project

To initialise the project

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 the public/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.

To run the app locally

bundle exec rackup

Then visit localhost:9292 in your browser.

To run all tests, and rubocop

. test.sh

To run one test file

bundle exec rspec path/to/test/file.rb

To run one single test

bundle exec rspec path/to/test/file.rb:TESTLINENUMBER

Frontend

To run the JavaScript tests

Run:

npm test

and then visit: http://localhost:9292/js/specrunner.html

To work on the syles

Run:

npm test

and then visit: http://localhost:9292

Contributing

Please check out our contribution guides and our code of conduct

License

License MIT License

About

:computer: :iphone: :desktop_computer: Web UI for Survival's donation system

https://donation-system-production.herokuapp.com/

License:MIT License


Languages

Language:Ruby 46.6%Language:JavaScript 24.4%Language:CSS 16.4%Language:HTML 8.3%Language:Shell 4.3%