https://github.com/inseefr/queen
Web application for the management of questionnaires powered by Lunatic
https://github.com/inseefr/queen
Last synced: 8 months ago
JSON representation
Web application for the management of questionnaires powered by Lunatic
- Host: GitHub
- URL: https://github.com/inseefr/queen
- Owner: InseeFr
- License: mit
- Archived: true
- Created: 2020-03-17T07:34:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-30T13:24:41.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T10:23:19.893Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.29 MB
- Stars: 3
- Watchers: 11
- Forks: 11
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Queen
Web application for the management of questionnaires powered by Lunatic (https://github.com/InseeFr/Lunatic)

[](https://sonarcloud.io/dashboard?id=InseeFr_Queen)
[](https://sonarcloud.io/dashboard?id=InseeFr_Queen)
[](https://opensource.org/licenses/MIT)
A demo of this application can be found by the following [this link](https://queen.dev.insee.io/queen/questionnaire/simpsons2020x00/survey-unit/11).
## Quick start :
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://github.com/InseeFr/Queen-Back-Office) | https://queen-bo.dev.insee.io |
| authenticationType | The mode of authentication: 'NONE' or 'OIDC' | NONE |
### With node :
For node : default values of the configuration are defined in [configuration.json](public/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)
### With docker :
- `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](.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`
### As Web Component (micro-frontend)
If Queen is deployed at `http://localhost:5000`, just add this line to your `index.html` to load Queen :
```html
```
And to use Queen, add the `queen-app` tag :
```html
```
## Full documentation
The documentation can be found in the [docs](https://github.com/InseeFr/Queen/tree/master/docs) folder and browsed [online](https://inseefr.github.io/Queen).