This repo is the API that pcwnetworkmap
calls to retrieve features, formatted as geojson.
- Login with GCP (ensure your email is set to either env. var
USER_1
orUSER_2
)
main.go
- init webserver, handlers for routes.processor.go
- helper functions for performing processing on the queried spreadsheet resultsstructs.go
- structs that are used to define the geojson response - see the file for more detailed informationgcp.go
- setting up the GCP Sheets service + oauth client configuration for authN.
See env_file_schema.md
for required environment variables
- Run
go test
- See the golang documentation for writing tests for more information.
- build the container -
docker compose build .
- run the container -
docker compose up -d
- test API responses with
curl
, etc.