This was a quick project that I used as an excuse to get familiar with Netlfiy serverless functions. It scrapes this page from Multnomah County using Cheerio on request, and displays 'Yes' if it sees the phrase 'mandatory burn ban' and 'No' if it doesn't. That's it!
Here's what you'll need if you want to get this running locally:
Prerequisities:
- Clone this repository
- Open the root directory of the cloned repository in a terminal.
- Run 'npm install axios'.
- Run 'npm install cheerio'.
- Run 'netlfiy dev' to start your local server.
- That's it!
If you want to deploy it to Netlify commit your changes to a new repository and connect it to Netlfiy, should work without much fuss!