{"id":13929644,"url":"https://github.com/AgenceBio/cartobio-front","last_synced_at":"2025-07-19T11:32:57.859Z","repository":{"id":37798243,"uuid":"176698526","full_name":"AgenceBio/cartobio-front","owner":"AgenceBio","description":"Transmission et consultation des données géographiques de l'Agriculture Biologique en France.","archived":false,"fork":false,"pushed_at":"2024-10-29T10:01:44.000Z","size":38011,"stargazers_count":13,"open_issues_count":6,"forks_count":3,"subscribers_count":7,"default_branch":"v2","last_synced_at":"2024-10-29T11:47:40.101Z","etag":null,"topics":["agriculture-biologique","entrepreneur-interet-general","geographical-index","opendata","organic-agriculture"],"latest_commit_sha":null,"homepage":"https://cartobio.agencebio.org","language":"Vue","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/AgenceBio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2019-03-20T09:24:36.000Z","updated_at":"2024-10-29T10:01:49.000Z","dependencies_parsed_at":"2023-12-18T22:41:22.805Z","dependency_job_id":"d50efee2-7bff-4b3e-a405-9ce982f71957","html_url":"https://github.com/AgenceBio/cartobio-front","commit_stats":null,"previous_names":[],"tags_count":111,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgenceBio%2Fcartobio-front","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgenceBio%2Fcartobio-front/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgenceBio%2Fcartobio-front/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AgenceBio%2Fcartobio-front/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AgenceBio","download_url":"https://codeload.github.com/AgenceBio/cartobio-front/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226597790,"owners_count":17657211,"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","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":["agriculture-biologique","entrepreneur-interet-general","geographical-index","opendata","organic-agriculture"],"created_at":"2024-08-07T18:02:27.882Z","updated_at":"2024-11-26T18:31:06.942Z","avatar_url":"https://github.com/AgenceBio.png","language":"Vue","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# CartoBio - Frontend\n\n\u003e Application de suivi et de certificaton du parcellaire bio à destination des _opérateurs bio_ et des _organismes de certification_.\n\nCette application implémente [la maquette Figma CartoBio](https://www.figma.com/file/RpE4QhlPyV0OSSYuk5vPno/Cartobio) ainsi que le [Système de Design de l'État](https://www.systeme-de-design.gouv.fr/) avec [Vue 3](https://vuejs.org/), [Vue Router](https://router.vuejs.org/), [Vue Pages](https://github.com/hannoeru/vite-plugin-pages), [Pinia](https://pinia.vuejs.org/) et [MapLibre](https://maplibre.org/) entre autres.\n\nLes erreurs sont centralisées avec [Sentry](https://github.com/getsentry/sentry) et les mesures pour les statistiques d'utilisation avec [Matomo](https://github.com/matomo-org/matomo).\n\n## Développement\n\n### Outils nécessaires\n\n- `node` 20\n\nOn pourra utiliser `nvm` pour faciliter la gestion de différentes versions de node (cf. [`.nvmrc`](.nvmrc)) :\n\n```sh\nnvm install \u0026\u0026 nvm use\n```\n\n### Configuration\n\nCréer un fichier `.env` inspiré de `.env.local.example`.\nBien vérifier l'API mobilisée paramétrée avec `VUE_APP_API_ENDPOINT`.\n\n### Application\n\nRécupérer les dépendances :\n\n```sh\n# Versions verrouillées\nnpm ci\n\n# Et/ou en les mettant à jour\nnpm install\n```\n\nDémarrer :\n\n```sh\nnpm start\n```\n\nOuvrir :\n\n- http://localhost:3000/\n\n### WebComponent Notification\n\nLe composant est intégré au portail de notification de l'Agence Bio pour proposer une option de chargement de parcellaire dès la première étape règlementaire.\n\nLe code source se situe dans [`widget/`](widget/).\n\nLa variable d'environnement `VUE_APP_NOTIFICATIONS_AB_SAMPLE_WEBCOMPONENT_TOKEN` doit être configurée avec un jeton valide.\n\nLa clé publique de vérification doit être installée côté API via la variable d'environnement `NOTIFICATIONS_AB_PUBLIC_KEY`.\n\n```sh\nnpm start -- --config vite.widget.config.js\n```\n\nOuvrir :\n\n- http://localhost:3000/\n\nLa page documente son intégration dans une page web tout en proposant une version interactive.\n\n### Exécution des tests\n\n```sh\nnpm test\n```\n\n### Préparation au déploiement\n\n```sh\nnpm run build\n```\n\nLes fichiers produits sont dans le répertoire `dist`.\n\n## Déploiement\n\n### Environnement de test\n\nChaque commit/push sur la branche `test` déploie en test : [Build and deploy (test)](https://github.com/AgenceBio/cartobio-front/actions/workflows/test.yml)\n\n### Environnement de préproduction\n\nChaque commit/push sur la branche `v2` déploie en préproduction : [Build and deploy (staging)](https://github.com/AgenceBio/cartobio-front/actions/workflows/staging.yml)\n\n### Environnement de production\n\nChaque nouveau tag `v2.*` déploie en production : [Build and deploy (production)](https://github.com/AgenceBio/cartobio-front/actions/workflows/deploy.yml)\n\nPour créer un tag :\n\n```sh\n# Lors d'ajout de fonctionnalités\nnpm version minor\n\n# Lors d'un correctif ou ajout très mineur\nnpm version patch\n```\n\nPuis :\n\n```sh\ngit push --tags\n```\n\n## Maintenance\n\n### Mettre à jour les codes cultures PAC\n\n```sh\nnpm install @agencebio/rosetta-cultures@latest\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAgenceBio%2Fcartobio-front","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAgenceBio%2Fcartobio-front","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAgenceBio%2Fcartobio-front/lists"}