Hazmapper is an application for creating, visualizing, and analyzing geospatial data in a variety of formats.
See https://github.com/TACC-Cloud/geoapi which is an associated restful API.
react/ directory contains the React client
To get started, create a local secret file for local development:
cp react/src/secret_local.example.ts react/src/secret_local.ts
The geoapiBackend setting in react/src/secret_local.ts ( see the example react/src/secret_local.example.ts ) controls which backend GeoAPI is used by Hazmapper during local development. You can choose from the following:
EnvironmentType.ProductionEnvironmentType.StagingEnvironmentType.DevEnvironmentType.Local
To run Hazmapper with the GeoAPI backend locally, configure geoapiBackend to use GeoapiBackendEnvironment.Local and see the GeoAPI repository for more detailed instructions.
npm ci
npm run dev
Navigate to http://localhost:4200/.
Run npm run test
Run npm run lint to run linter
Run npm run lint:fix to fix any linting/prettier errors
For deployment information, see https://github.com/TACC-Cloud/geoapi/blob/master/devops/README.md