The page that is served by the app uses a service worker and can be used offline and installed as PWA (Progressive Web App).
## Development
It can run in environment with NodeJS 10 installed. It does not use Facebook API for retrieving information, instead it relies on crawling and scraping event URL. This means that it can stop working or the results might not be reliable so use this at your own risk.
Run development server: `npm run start:dev`.
Run development server with debugger `npm run start:dev:inspect`.
There is no clever way to invalidate static assets (HTML, CSS, JS), so if you make any changes, just increment query parameters in view template(s) and service worker. Changing service worker should trigger new _update_ event that should also re-fetch new assets.
Sorry I wanted to keep the app simple so this is done manually. No big deal for me though.
App contains middleware that will redirect all traffic to HTTPS if the requests contain header `X-FORWARDED-PROTO`. For this to work, the middleware has to be enabled by setting environment variable `ENFORCE_HTTPS` to value `1`.