Skip to content

phillycommunitywireless/pcwnetworkmap-internal-api

Repository files navigation

pcwnetworkmap-internal-api

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

AuthN to the API to load internal endpoints

  • Login with GCP (ensure your email is set to either env. var USER_1 or USER_2)

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 + oauth client configuration for authN.

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 compose build .
  • run the container - docker compose up -d
  • test API responses with curl, etc.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages