Git Product home page Git Product logo

onsdigital.eq-questionnaire-schemas's Introduction

eq-questionnaire-schemas

A repo for building questionnaire schemas for eq-questionnaire-runner.

A number of make targets exist in order to create/test schemas locally:

Build Command
build Build schemas using jsonnet and translate them
build-schemas Build schemas in english using jsonnet
validate-schemas Validate schemas using eq-questionnaire-validator docker image

Build commands are only executed for english versions of schemas, due to changes neccessary to validator in order to accomodate characters from other languages.

Translation Command
translate-schemas Translate english schemas
translation-templates Extracts empty templates for translation (.pot)
test-translation-templates Tests that current translation templates are up to date

Testing built schemas with eq-questionnaire-runner

In order to test the schemas built in this repo you will need to create a symbolic link between a /schemas directory in runner and the schemas directory that is generated here.

In eq-questionnaire-schemas:

Use make build to generate the schemas and populate the /schema directory.

In your local eq-questionnaire-runner repository:

Remove the /schemas directory if it already exists

Create a symbolic link pointing at your generated schema files by running the following command:

ln -s <PATH_TO_REPO>/eq-questionnaire-schemas/schemas <PATH_TO_REPO>/eq-questionnaire-runner/schemas

You should now be able launch a questionnaire using one of the schemas.

onsdigital.eq-questionnaire-schemas's People

Contributors

ajmaddaford avatar berroar avatar iwootten avatar jamesgardiner avatar lauraedwards1 avatar ljbabbage avatar mebinabraham avatar petechd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.