Skip to content

eads/desapariciones

Repository files navigation

Disappearances

Rig to process and publish project materials related to public data about disappearances.

The quickest way to get up and running is to clone this repository and run make help.

(@TODO Observable link)

Requirements

  • GNU Make
  • NodeJS
  • PostgreSQL
  • PostGIS
  • GDAL
  • xsv
  • rclone
  • Mapbox CLI (brew install mapbox/cli/mapbox)

You'll need to either:

  • Get a set of configuration files to put in the secrets directory and to populate the .env file from one of the developers.
  • Configure the project yourself (currently undocumented).

Setup

make install

Running

make all

Database structure

The structure of the database is novel and perhaps even too complex, but we're trying it!

The database uses PostgreSQL schemas to separate untransformed data from transformed data.

Performance notes

We're comparing a few different approaches to building the frontend:

  • Mapbox + Mapbox tiles to manage data
  • DeckGL + GeoJSON to manage data
  • With and without charting libraries

Mapbox + Swipe library, no charting lib

This is a fairly minimalist configuration that corresponds with commit #481889ed.

  • Overall: 89
  • 1st contentful paint: 0.9s
  • First meaningful paint: 0.9s
  • Speed index: 3.3s
  • 1st cpu idle: 4.5s
  • time to interactive: 5.0s
  • est input latency: 170ms

Mapbox + Recharts, trial 1 (1 line chart)

Might have been fouled by extension

  • Overall: 59
  • 1st contentful paint: 0.7s
  • First meaningful paint: 0.7s
  • Speed index: 6.5s
  • 1st cpu idle: 1.1s
  • time to interactive: 10.4s
  • est input latency: 250ms

Total payload: 1.1mb / 3.5mb

Mapbox + Recharts, trial 2 (1 line chart)

  • Overall: 78
  • 1st contentful paint: 1.1s
  • First meaningful paint: 1.1s
  • Speed index: 3.8s
  • 1st cpu idle: 5.7s
  • time to interactive: 6.1s
  • est input latency: 290ms

Total payload: 1.1mb / 3.5mb

Mapbox + Recharts responsive (1 line chart)

  • Overall: 76
  • 1st contentful paint: 0.8s
  • First meaningful paint: 4.0s
  • Speed index: 3.9s
  • 1st cpu idle: 5.5s
  • time to interactive: 6.0s
  • est input latency: 260ms

Total payload: 1.1mb / 3.5mb

Mapbox + Nivo

  • Overall: 76
  • 1st contentful paint: 1.7s
  • First meaningful paint: 3.9s
  • Speed index: 3.4s
  • 1st cpu idle: 5.7s
  • time to interactive: 6.2s
  • est input latency: 250ms

Total payload: 1.1mb / 3.4mb

silky smooth map performance

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published