{"id":19782933,"url":"https://github.com/epfl-si/wp-polylex","last_synced_at":"2026-05-06T13:17:26.441Z","repository":{"id":41782624,"uuid":"197381448","full_name":"epfl-si/wp-polylex","owner":"epfl-si","description":"Manage and serve the list of EPFL lexes","archived":false,"fork":false,"pushed_at":"2026-02-18T08:54:26.000Z","size":975,"stargazers_count":2,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-18T12:59:04.554Z","etag":null,"topics":["epfl","lexes","meteor","polylex","react"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epfl-si.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-07-17T12:05:51.000Z","updated_at":"2026-02-18T08:50:35.000Z","dependencies_parsed_at":"2025-03-17T07:29:35.124Z","dependency_job_id":"b9a8b9bd-8841-45a8-b878-398b0473de73","html_url":"https://github.com/epfl-si/wp-polylex","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/epfl-si/wp-polylex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-si%2Fwp-polylex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-si%2Fwp-polylex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-si%2Fwp-polylex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-si%2Fwp-polylex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epfl-si","download_url":"https://codeload.github.com/epfl-si/wp-polylex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-si%2Fwp-polylex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32695257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["epfl","lexes","meteor","polylex","react"],"created_at":"2024-11-12T06:06:50.770Z","updated_at":"2026-05-06T13:17:26.436Z","avatar_url":"https://github.com/epfl-si.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wp-polylex\n\n[![Test](https://github.com/epfl-si/wp-polylex/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/epfl-si/wp-polylex/actions/workflows/test.yml)\n[![Build](https://github.com/epfl-si/wp-polylex/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/epfl-si/wp-polylex/actions/workflows/build.yml)\n\nCette application a pour but de stocker les textes légaux abrogés.\n\n## Lancer l'application en local \n\n1) Se placer dans l'app : `cd app/`.\n\n2) La première fois, installer les paquets : `meteor npm i` et copier le fichier *meteor-settings.example.json* puis le renommer en *meteor-settings.json*.\n\n3) Exporter les variables utiles pour EntraID depuis */keybase/team/epfl_wppolylex/ansible_polylex_secrets.yml* : `export AUTH_ENTRA_\u003c...\u003e=\"...\"`.\n\n4) Lancer l'application : `meteor --settings meteor-settings.json` puis se rendre à l'adresse http://localhost:3000.\n\n## Utilisation du CLI\n\nLe CLI permet d'importer les données de prod ou de test dans la DB locale.\n\nPour installer le CLI en local, il faut:\n- Se placer dans le répetoire `cli/`\n- Faire un `npm install`\n- Faire un `npm install -g ./`\n\nLorsque le CLI est installé :\n- Se placer à la racine du projet polylex\n- On peut maintenant faire un `polylex-cli --help`\n\n```\ngreg@epfl:~/workspace-idevfsd/wp-polylex$ polylex-cli --help \nUsage: polylex-cli [options] [command]\n\nOptions:\n  -h, --help               display help for command\n\nCommands:\n  clean-all-documents      Delete all documents from the local MongoDB\n  restore-test-db          Restore the test MongoDB on local MongoDB\n  restore-prod-db          Restore the production MongoDB on local MongoDB\n  restore-prod-db-on-test  Restore the production MongoDB on test MongoDB\n  help [command]           display help for command\n```\n\n## Déployer une nouvelle version sur Openshift\nPour commencer, si ce n'est déjà fait, on doit changer le numéro de version :\n- Dans le fichier app/package.json\n- Dans les fichiers d'inventaire Ansible ansible/inventory/*.yml\n- On commit/push\n- On crée le tag : `git tag -a \u003cversion\u003e -m \"polylex version \u003cversion\u003e\"`\n- On push le tag : `git push --follow-tags`\nPuis,\n- `./ansible/polysible [--prod]`\n\n## Autentification Entra ID et rôle\n\n- Pour se connecter à l'application, il se faut s'authentifier avec Entra ID.\n- Pour obtenir le rôle 'admin' il faut appartenir au groupe 'wp-polylex-admins' de l'application groups.epfl.ch\n- Pour obtenir le rôle 'editor' il faut appartenir au groupe 'wp-polylex-editors' de l'application groups.epfl.ch\n\n## Exécuter les tests en local\n\n`TEST_WATCH=1 meteor test --driver-package meteortesting:mocha`\n\n## Spécification de l'application\nVoir [documentation](doc/SPECS.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfl-si%2Fwp-polylex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepfl-si%2Fwp-polylex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfl-si%2Fwp-polylex/lists"}