Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.67 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.67 KB

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)