The hub for all internal data and management of that data in the IQA.
If you want to use docker for development purposes instead of installing tools and services manually, see docker/README.md
.
It’s highly recommended you use a ruby version manager during development of this app. The locked ruby version is ‘2.7.1’
and is required to develop on the application.
System dependencies
Tips in case of missing system dependencies
Setup and running
referee_hub/
:
bundle install
to install ruby gem dependenciesyarn install
to install javascript dependenciesrails db:setup
to create the backend database (postgresql must be running)./bin/start
from the root folder. If you’re having permission issues running the script make sure youchmod +x ./bin/start
How to run the test suite
be rspec spec/models/referee_spec.rb
be rspec spec/models/referee_spec.rb:37
Contributing to the codebase
git checkout -b testing-framework-backend
- @AfroDevGirl Adds referee_answer model to store a referee's answers relative to a test ce1a18b
- @AfroDevGirl Adds testable question count to test so questions can be randomly selected 46e4dcd
- @AfroDevGirl Adds test starting functionality to api 3751d76
- @AfroDevGirl Adds test finish functionality 62a4632
- @AfroDevGirl Adds test result mailer and fixes webpack version issue 8278148
- @AfroDevGirl Adds validation for tests in cool down period 45c2dab
- @AfroDevGirl Fixes spec running 7ab56ca
git push -u origin testing-framework-backend
and create a new Pull Request.Deployment instructions
Procfile
CSS is compiled using PostCSS and Tailwind. See configuration in postcss.config.js
which imports packages defined in package.json
.
Compiled CSS is included in the core application for single pages (like auth) and for the SPA.
We can use AWS CloudFront to be a CDN on top of our application. The service hosts static files such as CSS/JS in a normal way.
We have a CF endpoint pointing at our service. We use the CF endpoint when referring to our static assets so that they’re cached and geo distributed.
In rails this was done automatically using these instructions https://devcenter.heroku.com/articles/using-amazon-cloudfront-cdn#adding-cloudfront-to-rails
and by calling special tags in views.