Hosted at: https://lknWater.info
- Install jest :
npm i
- Run tests:
npm test
- Install Netlify CLI globally:
npm install netlify-cli -g
- Link to Netlify app to inject env vars:
netlify link
- Start app locally:
OPENSSL_CONF=./openssl.conf netlify dev
- Needed to override the openssl config to bypass the legacy renegotiation issue with the netlify servers
- View site at localhost:8888
Note: when running locally you can test both functions with either of these commands:
netlify functions:invoke scheduled-deploy
netlify functions:invoke getWaterTemperature