Skip to content

dataforgoodfr/shiftdataportal

Repository files navigation

The Shift Project Data Portal

This repository contains all code used to source (python), clean (python), prepare (python), serve (NodeJS, Typescript, Express, GraphQL, SQLite) and display data (ReactJS, Typescript, NextJS, Apollo GraphQL) of theshiftdataportal.org.

Deployment

The Data Portal is hosted at Scalingo (French 🐓 cloud provider). Deployment is automated thanks to CircleCI: merging a pull request to the main branch means pushing to production. You can check the process in circleci config file. To get access to CircleCI interface, connect with Github login.

During the deployment, files in server/data are aggregated in a sqlite database which is embedded in production API.

Side projects

These projects are not maintained and we are not sure if they can serve anymore.

/csv-generator

A Node JS Lambda function that receives an array of data and returns a CSV.

/chart-screenshot

A Serverless Puppeteer (Chrome Headless) that receives the URL of the /client and takes a screenshot of the ".screenshot" DOM element.