Web application for the management of questionnaires powered by Lunatic (https://github.com/InseeFr/Lunatic)
A demo of this application can be found by the following this link.
You can choose your configuration in the configuration.json file. There are three environments variables :
Variable | Value | Default |
---|---|---|
QUEEN_URL | Final URL of the Queen application | http://localhost:5000 |
QUEEN_API_URL | URL of the back-office of Queen | https://queen-bo.dev.insee.io |
authenticationType | The mode of authentication: 'NONE' or 'OIDC' | NONE |
For node : default values of the configuration are defined in configuration.json file.
yarn
yarn start
- Queen will be available to http://localhost:5000 (Go to http://localhost:5000/queen/questionnaire/simpsons2020x00/survey-unit/11 to see a example)
docker run -p 5000:80 -t inseefr/queen
- Queen will be available to http://localhost:5000 (Go to http://localhost:5000/queen/questionnaire/simpsons2020x00/survey-unit/11 to see a example)
For docker : default values of the configuration are defined in .env file.
To override environments variables you can do :
docker run -p 80:80 -e QUEEN_URL=http://override.value.com -e QUEEN_API_URL=... -e authenticationType=... -t inseefr/queen
If Queen is deployed at http://localhost:5000
, just add this line to your index.html
to load Queen :
<script src="http://localhost:5000/entry.js"></script>
And to use Queen, add the queen-app
tag :
<queen-app></queen-app>
The documentation can be found in the docs folder and browsed online.