Skip to content

A front-end application for the SDG Push Diagnostic, a dynamic visualization and analytics platform that integrates multiple data sources to establish SDG trends, national priorities and interlinkages.

Notifications You must be signed in to change notification settings

UNDP-Data/SDG-Accelerator

Repository files navigation

SDG Push Diagnostics

The SDG Push Diagnostic reimagines and recalibrates how we determine, interrogate and advance development interventions that put countries on more stable footing. Click here to see the interface.

Table of Contents

Link for the application

https://sdgdiagnostics.data.undp.org/

Deployment

The branch used for deployment is production-azure. The Production site deployed using Azure Static Web App and work flow can be found here

Related Repos & Blob Storage

  • sdg-push: This is blob storage on Azure where all the pdfs like insight reports and methodology are stored. Contact Mustafa Saifee or Mykola Skrynnyk for access.
  • SDG-Accelerator-Data-Repo: This is all the data sheets fr all the countries
  • stylesheet-for-viz: Repo which defines the css settings for the project

Global CSS for UI and Graphs

Git Repo: https://github.com/UNDP-Data/stylesheets-for-viz

Link for stylesheets

Build with

  • React: Used as MVC framework.
  • styled-components: Utilizes tagged template literals and the power of CSS, allows to write actual CSS code to style the components in JS/TS.
  • Various D3 Libraries: Used for visualizations, adding interaction and reading the csv data file.
  • Axios: This is for making API calls for National Priorities.
  • AntD: For UI elements like dropdown, buttons, checkbox, and slider.
  • dom-to-image: Used to allow users to download images of various visualization views they create.
  • lodash: Used for manipulating and iterating arrays and objects.
  • lucide-react: Used to render icons.
  • react-intersection-observer: Used to check if a view is in above or below the scroll.
  • undp-viz-colors: This is package for defining the visualization color palette.

Installation

This 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.

To 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.

This project is bootstrapped with Vite and was created using npm create vite@latest command.

Run the terminal or command prompt and then run the following

git clone https://github.com/UNDP-Data/SDG-Accelerator.git
cd SDG-Accelerator
npm install

Local Development

To start the project locally, you can run npm run dev in the project folder in terminal or command prompt.

This is run the app in development mode. Open http://localhost:5173/ to view it in the browser.

The page will reload if you make edits. You will also see any lint errors in the console.

Available Scripts

  • npm run dev: Executes vite and start the local server for local deployment.
  • npm run build: Executes tsc && vite build and builds the app for production and deployment.

Tooling Setup

This 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.

This project is build in Visual Studio Code, therefore the project is already set up to work with. Install it from here and then install this eslint plugin and you should be good to go.

About

A front-end application for the SDG Push Diagnostic, a dynamic visualization and analytics platform that integrates multiple data sources to establish SDG trends, national priorities and interlinkages.

Topics

Resources

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •