This is a proof of concept application.
It takes content defined using GOVSPEAK markdown in YAMLS files stored
at data/content and display it as HTML pages.
The content document have a position attribute which is used to place them in a basic navigation system.
The application also defines a set of questions within YAMLS files
stored at data/questionnaires, and generates a question and answer
journey based on that data.
This is a Ruby on Rails application and requires Ruby and PostgesSQL installed.
- Clone this application to your local environment
- cd into the application root
- run
bundleto install the required ruby gems - run
rails db:createandrails schema:loadto set up the database - run
rake javascript:buildto set up the JavaScript environment - run
rake dartsass:buildto set up SASS
You should then be able to run a local instance of the application using rails s
The CI pipeline for this application are run via github actions.
The following CI elements can be run locally before deployment.
To run the test locally use the command rspec
Use Rubocop to check the Ruby code of this application locally. The following
command will both find any problems and attempt to fix them: rubocop -A
Use the command brakeman to locally run a vulnerability test on the code