{"id":42503744,"url":"https://github.com/dataforgoodfr/batch5_phenix_viztavie","last_synced_at":"2026-01-28T13:37:24.665Z","repository":{"id":40976893,"uuid":"218129090","full_name":"dataforgoodfr/batch5_phenix_viztavie","owner":"dataforgoodfr","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-11T11:18:13.000Z","size":1777,"stargazers_count":0,"open_issues_count":23,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-02T02:55:14.698Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/dataforgoodfr.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}},"created_at":"2019-10-28T19:30:17.000Z","updated_at":"2019-10-29T12:38:48.000Z","dependencies_parsed_at":"2023-01-26T22:01:19.353Z","dependency_job_id":null,"html_url":"https://github.com/dataforgoodfr/batch5_phenix_viztavie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dataforgoodfr/batch5_phenix_viztavie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataforgoodfr%2Fbatch5_phenix_viztavie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataforgoodfr%2Fbatch5_phenix_viztavie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataforgoodfr%2Fbatch5_phenix_viztavie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataforgoodfr%2Fbatch5_phenix_viztavie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dataforgoodfr","download_url":"https://codeload.github.com/dataforgoodfr/batch5_phenix_viztavie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dataforgoodfr%2Fbatch5_phenix_viztavie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T13:02:32.985Z","status":"ssl_error","status_checked_at":"2026-01-28T13:02:04.945Z","response_time":57,"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":[],"created_at":"2026-01-28T13:37:18.966Z","updated_at":"2026-01-28T13:37:24.657Z","avatar_url":"https://github.com/dataforgoodfr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VizTaVie\n\nRésultat du projet Dataforgood + Phenix.\n\n# Installation\nPour installer les dépendances et lancer les serveurs (webpack: 8080 et express: 4000).\n```node\nyarn prepare\n```\n\n# Lancement\n```node\nyarn serve\n```\n\n# Production\n\n```node\nyarn build\n```\n# Client\nIl s'agit d'un projet Vue.JS + TypeScript + Vuex. \nLes autres dépendances principales sont TailwindCSS, Chart.JS et Leaflet. \nLe projet contient également deux fichiers GeoJSON pour les calques régions et départements. Il suffit d'ajouter un fichier GeoJSON dans le dossier ***./client/src/assets*** et d'y ajouter une clé \"level\" pour qu'il soit ajouté dans la liste des niveaux géographiques disponibles.\n\n```json\n./client/src/assets/cantons.geojson.json\n\n{ \"type\":\"FeatureCollection\",\"level\":\"Cantons\",\"features\":[ ... ] }\n```\n\n***A noter***: *Object.freeze* est utilisé à de nombreuses reprises dans le store lorsqu'il s'agit d'objets très larges \nqui ne requièrent pas de watchers, ce qui permet d'améliorer drastiquement les performances avec des arrays de 10000+ objets.\n\n\n***./client/src/store/geography.ts***\n```ts\n/**\n * Available geo layerings.\n */\npublic layers: readonly GeoLayer[] = Object.freeze(geoLayers)\n```\n\n***./client/src/store/index.ts***\n```ts\n/**\n * Set all data.\n */\nset(state, data: Data) {\n  for (let i in data) {\n    state[i] = Object.freeze(data[i])\n  }\n}\n```\n\n# Serveur\n\nLe serveur Node est utilisé pour récupérer les données et lancer les scripts python. \nLa documentation et les pré-requis de la partie en Python arrivera bientôt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataforgoodfr%2Fbatch5_phenix_viztavie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdataforgoodfr%2Fbatch5_phenix_viztavie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdataforgoodfr%2Fbatch5_phenix_viztavie/lists"}