{"id":24775672,"url":"https://github.com/inseefr/public-enemy","last_synced_at":"2025-09-07T14:07:11.096Z","repository":{"id":39005307,"uuid":"342592190","full_name":"InseeFr/Public-Enemy","owner":"InseeFr","description":"Contextualized questionnaire vizualisation tools","archived":false,"fork":false,"pushed_at":"2025-08-31T11:31:44.000Z","size":1087,"stargazers_count":0,"open_issues_count":23,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-31T13:20:02.742Z","etag":null,"topics":["transverse-component"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InseeFr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-02-26T13:59:07.000Z","updated_at":"2025-04-23T08:50:44.000Z","dependencies_parsed_at":"2023-12-15T03:31:50.342Z","dependency_job_id":"822c7a74-0cf2-458c-96da-ef72a69332ca","html_url":"https://github.com/InseeFr/Public-Enemy","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"purl":"pkg:github/InseeFr/Public-Enemy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2FPublic-Enemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2FPublic-Enemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2FPublic-Enemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2FPublic-Enemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InseeFr","download_url":"https://codeload.github.com/InseeFr/Public-Enemy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2FPublic-Enemy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274046000,"owners_count":25212982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["transverse-component"],"created_at":"2025-01-29T06:55:13.982Z","updated_at":"2025-09-07T14:07:11.066Z","avatar_url":"https://github.com/InseeFr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Public-Enemy\n\nContextualized questionnaire vizualisation tools developped with react/mui/vite\n\nThis project is directly linked with [Public Enemy Backoffice](https://github.com/InseeFr/Public-Enemy-Back-Office/) to create and save questionnaires.\n\n## Global project concept\n\nPublic-Enemy (\u0026 backoffice) is a tool used to test questionnaires with data. Questionnaire designer create questionnaire in pogues but can't test them with predefined data directly. Public-Enemy gives to the designer the ability to inject a questionnaire in orchestrators (stromae, queen soon), and add predefined survey units data in the orchestrators for this questionnaire.\n\nPublic-Enemy's global functionalities for a designer:\n\n- create a questionnaire in public-enemy\n  - retrieve the questionnaire from pogues\n  - create the questionnaire in public-enemy\n  - inject the questionnaire and survey units data (given by the designer when creating questionnaire in public-enemy) in the orchestrators\n- update a questionnaire in public-enemy\n  - synchronise the questionnaire with the orchestrators (when pogues questionnaire has been edited for example, or to change survey units data)\n- delete a questionnaire in public-enemy\n  - delete questionnaire in orchestrators\n- access to questionnaire in orchestrators\n  - designer can access to a questionnaire in orchestrators for a specific survey unit\n  - designer can reset a specific survey unit data\n\n## Requirements\n\nFor building and running the application you need:\n\n- yarn\n- a public-enemy environment (backoffice, db, pogues, stromae) configured and running\n\n## Install\n\n```shell\nyarn\n```\n\n## Running the application locally\n\n```shell\nyarn start\n```\n\n## Docker/Kubernetes\n\nA Dockerfile is present on this root project to deploy a container. You can [get docker images on docker hub](https://hub.docker.com/r/inseefr/public-enemy/tags)\n\n[Helm chart repository](https://github.com/InseeFr/Helm-Charts/) is available for the public-enemy backoffice/frontend\n\nThe repository contains helm charts to deploy pogues/eno/stromae too.\n\n## Create a production build\n\n```shell\nyarn run build\n```\n\n### Configuration\n\nBefore launching app, you must set up some environment variables:\n\n```\n# base url of public-enemy api (back-office)\nVITE_API_URL=http://localhost:8080/api\n# root url of orchestrator ui\nVITE_ORCHESTRATOR_URL=http://localhost:3001\n# root url of pogues ui\nVITE_POGUES_URL=http://localhost/pogues\n# documentation url\nVITE_DOCUMENTATION_URL=http://localhost/documentation\n# locale\nVITE_LOCALE=fr\n```\n\nFor docker, the environment variables can be injected as system environment variables, a script is used to generate environment variables after build time, see Dockerfile and container/env.sh)\n\n## Libraries used\n\n- typescript\n- vite\n- react\n- react mui\n- react-intl\n- react-query\n- husky\n- tss-react\n- notistack\n- eslint\n- semantic-release\n\n## Before you commit\n\nBefore committing code please ensure,  \n1 - README.md is updated  \n2 - A successful build is run and all tests are successful  \n3 - All newly implemented APIs are documented  \n4 - All newly added properties are documented\n\n## License\n\nPlease check [LICENSE](https://github.com/InseeFr/Public-Enemy/blob/main/LICENSE) file\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Fpublic-enemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finseefr%2Fpublic-enemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Fpublic-enemy/lists"}