Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 589 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 589 Bytes

zip-to-gps

Convert a zipcode to its approximate lat/lon coordinates.

// GET api.elizabethwarren.codes/prod-zip-to-gps/:zipcode

{
  lat: Float,
  lon: Float,
}

Local Development

Requires Docker.

$ make tests

Deployment

Use the serverless toolbox,

# From the `serverless-toolbox` directory,
# Replace ~/dev/zip-to-gps with the path to the `stats-api`
# directory on your host machine.
$ SRC=~/dev/zip-to-gps make toolbox

$ sls deploy -f api --stage prod
$ sls logs -f api --stage prod