{"id":20486251,"url":"https://github.com/undp-data/dv-water-projects","last_synced_at":"2025-10-23T19:28:34.368Z","repository":{"id":182233856,"uuid":"611397050","full_name":"UNDP-Data/dv-water-projects","owner":"UNDP-Data","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-13T12:51:27.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T04:43:35.777Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/UNDP-Data.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}},"created_at":"2023-03-08T18:38:45.000Z","updated_at":"2023-11-10T08:27:42.000Z","dependencies_parsed_at":"2024-11-15T16:46:13.871Z","dependency_job_id":null,"html_url":"https://github.com/UNDP-Data/dv-water-projects","commit_stats":null,"previous_names":["undp-data/dv-water-project-viz","undp-data/dv-water-projects"],"tags_count":0,"template":false,"template_full_name":"UNDP-Data/dv-ui-starter-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdv-water-projects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdv-water-projects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdv-water-projects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UNDP-Data%2Fdv-water-projects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UNDP-Data","download_url":"https://codeload.github.com/UNDP-Data/dv-water-projects/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242061221,"owners_count":20065688,"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":[],"created_at":"2024-11-15T16:35:51.710Z","updated_at":"2025-10-23T19:28:34.269Z","avatar_url":"https://github.com/UNDP-Data.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Project Title\n#### Visualizing South South projects [Click here to see the interface](https://calm-grass-0e3382b10.4.azurestaticapps.net).\n\n## Table of Contents\n* [Link for the visualization](#section-01)\n* [Deployment](#deployment)\n* [Steps to integrate the vis in static page](#section-02)\n* [Pages on DFP where This Viz is Used](#section-03)\n* [Related Repos](#section-04)\n* [Global CSS Files and Repo](#section-05)\n* [Build With](#section-06)\n* [Installation](#section-07)\n* [Local Deployment](#section-08)\n* [Available Scripts](#section-09)\n* [Tooling Setup](#section-10)\n\n## Link for the visualization\u003ca name=\"section-01\"\u003e\u003c/a\u003e\n[https://calm-grass-0e3382b10.4.azurestaticapps.net](https://calm-grass-0e3382b10.4.azurestaticapps.net)\n\n## Deployment\u003ca name=\"deployment\"\u003e\u003c/a\u003e\nThe Production site deployed using Azure Static Web App and work flow can be found [here](https://github.com/UNDP-Data/dv-water-projects/blob/master/.github/workflows/azure-static-web-apps-calm-grass-0e3382b10.yml)\n\n## Steps to Integrating the Visualization in the Data Future Platform or Any Other Page\u003ca name=\"section-02\"\u003e\u003c/a\u003e\nAdd the following div in the page\n```\n\u003cdiv id=\"root\"\u003e\u003c/div\u003e\n```\nApart from the mentioned `div` above the following `script` and `link` needs to be added to the `head` or in the embed code\n```\n\u003cscript defer src=\"https://calm-grass-0e3382b10.4.azurestaticapps.net/index.js\"\u003e\u003c/script\u003e\n\u003clink rel=\"stylesheet\" href=\"https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css\" /\u003e\n\u003clink rel=\"stylesheet\" href=\"https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css\" /\u003e\n\u003clink rel=\"stylesheet\" href=\"https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css\" /\u003e\n```\n\n## Pages on DFP Where the Visualization is Used\u003ca name=\"section-03\"\u003e\u003c/a\u003e\n[Water and Sustainable Development](https://data.undp.org/insights/water-and-sustainable-development)\n\n## Related Repos\u003ca name=\"section-04\"\u003e\u003c/a\u003e\n* [__country-taxonomy-from-azure__](https://github.com/UNDP-Data/country-taxonomy-from-azure): This is data sheet with meta data for Countries\n* [__dv-water-projects-data-repo__](https://github.com/UNDP-Data/dv-water-projects-data-repo): This is the data sheet for visualization\n* [__dv-world-map-geojson-data__](https://github.com/UNDP-Data/dv-world-map-geojson-data): This is geoJson file for world map\n* [__stylesheet-for-viz__](https://github.com/UNDP-Data/stylesheets-for-viz): Repo which defines the css settings for the project\n\n## Global CSS for UI and Graphs\u003ca name=\"section-05\"\u003e\u003c/a\u003e\n__Git Repo__: https://github.com/UNDP-Data/stylesheets-for-viz\n\n__Link for stylesheets__\n* https://undp-data.github.io/stylesheets-for-viz/style/mainStyleSheet.css\n* https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraphingInterface.css\n* https://undp-data.github.io/stylesheets-for-viz/style/StyleForGraph.css\n\n## Build with\u003ca name=\"section-06\"\u003e\u003c/a\u003e\n* __React__: Used as MVC framework.\n* __styled-components__: Utilizes tagged template literals and the power of CSS, allows to write actual CSS code to style the components in JS/TS.\n* __Various D3 Libraries__: Used for visualizations, adding interaction and reading the csv data file.\n* __lodash__: Used for manipulating and iterating arrays and objects.\n* __undp-viz-colors__: This is package for defining the visualization color palette.\n\n## Installation\u003ca name=\"section-07\"\u003e\u003c/a\u003e\nThis project uses `npm`. For installation you will need to install `node` and `npm`, if you don't already have it. `node` and `npm` can be installed from [here](https://nodejs.org/en/download/).\n\nTo install the project, simply clone the the repo and them run `npm install` in the project folder. You can use terminal on Mac and Command Prompt on Windows.\n\nThis project is bootstrapped with [`Vite`](https://vitejs.dev/) and was created using `npm create vite@latest` command.\n\nRun the terminal or command prompt and then run the following\n\n```\ngit clone https://github.com/UNDP-Data/dv-water-projects.git\ncd dv-water-projects\nnpm install\n```\n\n## Local Development\u003ca name=\"section-08\"\u003e\u003c/a\u003e\nTo start the project locally, you can run `npm run dev` in the project folder in terminal or command prompt.\n\nThis is run the app in development mode. Open [http://localhost:5173/](http://localhost:5173/) to view it in the browser.\n\nThe page will reload if you make edits. You will also see any lint errors in the console.\n\n## Available Scripts\u003ca name=\"section-09\"\u003e\u003c/a\u003e\n* `npm run dev`: Executes `vite` and start the local server for local deployment.\n* `npm run build`: Executes `tsc \u0026\u0026 vite build` and builds the app for production and deployment.\n\n## Tooling Setup\u003ca name=\"section-10\"\u003e\u003c/a\u003e\nThis project uses ESLint integrated with prettier, which verifies and formats your code so you don't have to do it manually. You should have your editor set up to display lint errors and automatically fix those which it is possible to fix. See [http://eslint.org/docs/user-guide/integrations](http://eslint.org/docs/user-guide/integrations).\n\nThis project is build in Visual Studio Code, therefore the project is already set up to work with. Install it from [here](https://code.visualstudio.com/) and then install this [eslint plugin](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and you should be good to go.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fdv-water-projects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fundp-data%2Fdv-water-projects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fundp-data%2Fdv-water-projects/lists"}