Originally developed by @codefean and funding provided through the Alaska Climate Adaptation Science Center (AK CASC).
To build the website, we need to have a .env file containing the production MapBox token that can be found in our MapBox account for juneauflood.org. Follow the structure of .env.example for how that should be laid out.
The website requires at least lts/iron, so install that version of Node if you haven't already.
nvm install lts/ironUse the lts/iron Node in your shell:
nvm use lts/ironnpm installnpm run buildBe sure to have the AWS CLI tools installed on your system.
aws s3 cp build/ s3://juneauflood.org/ --acl public-read --recursiveaws cloudfront create-invalidation --distribution-id E1LZJ43CT5GFMD --paths "/*"