Skip to content

phillycommunitywireless/pcwnetworkmap-api

Repository files navigation

pcwnetworkmap-api

This repo is the API that pcwnetworkmap calls to retrieve features, formatted as geojson.

Deploy previews via Render

Files

  • main.go - init webserver, handlers for routes.
  • processor.go- helper functions for performing processing on the queried spreadsheet results
  • structs.go- structs that are used to define the geojson response - see the file for more detailed information
  • gcp.go - setting up the GCP Sheets service

Environment Variables

See env_file_schema.md for required environment variables

Tests

  • Run go test
  • See the golang documentation for writing tests for more information.

Editing this repository

  • 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.

About

API that generates GeoJSON for PCW Network Map

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages