This repo is the API that pcwnetworkmap calls to retrieve features, formatted as geojson.
Deploy previews via Render
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
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 build . -t pcwnetworkmap-api - run the container -
docker run --rm -d -p 8080:8080 --name "api" -v .:/api pcwnetworkmap-api - test API responses with
curl, etc.