Skip to content

EdmondChuiHW/address2contact

Repository files navigation

address2contact

Build Status David David

Express App that resolves councillor info from an address or lat/long. Backend for email-contact

λ

Uses Ramda heavily for functional programming where applicable.

Scripts

start

Starts server at port process.env.PORT or 5000.

start:ssl

Starts server at port process.env.PORT or 5000 with SSL. Expects server.key and server.cert files in root directory.
Generate them with openssl req -nodes -new -x509 -keyout server.key -out server.cert

test:units

Runs relevant unit tests in watch mode. Does not require backend to be running.

test

Runs relevant unit and E2E tests in watch mode. Does not require backend to be running.

test:ci

Runs all unit and E2E tests and saves results in JUnit format.

Continuous Integration (CI)

Project is automatically deployed by Heroku if all tests pass.
View the Azure Pipeline project: https://dev.azure.com/chuihinwai/address2councillor

Todo

  • Add API token mechanism
  • Revert to Open Data councillors table from hard coded hot fix
  • Add caching of ward boundaries and councillor info
  • Favour import instead of require (Add Babel)

About

Address to councillor server in Ramda (FP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published