nofurtherinformation / mn-explorer

https://mn-explorer.vercel.app
MIT License
0 stars 2 forks source link

Setup the JSON config file on S3 for download files #9

Closed nmarchio closed 1 year ago

nmarchio commented 1 year ago

I added the following index file with country and file names to the S3 bucket containing the data so we're ready to hook up the download functionality. Happy to take a stab at this on my own but creating an issue for viz.

Here is the URI : s3://mnp-data-download/_file_index.json

const countryList = [
  {
    name: "sub-Saharan Africa",
    filepath: "AF/africa_geodata",
  },  
  {
    name: "Angola",
    filepath: "AGO/AGO_geodata",
  },  
  {
    name: "Burundi",
    filepath: "BDI/BDI_geodata",
  },  
];

const fileTypes = [
  {
    name: "Parquet",
    extension: "parquet",
  },
  {
    name: "GeoPackage",
    extension: "gpkg",
  },
];

const cdnBase = "dsbprylw7ncuq.cloudfront.net";