Basic cleanup before going public

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-24 16:45:54 -04:00
parent a7d3af3323
commit f70142b7b0
5 changed files with 56 additions and 46 deletions
+24
View File
@@ -1,3 +1,27 @@
# DeHaze
Port the Haze Explr API to GEOJSON for use in GIS applications.
This was a quick and dirty project, and will probably get some updates slowly in the future. I put what I learned from this in the [HacDC Wiki](https://wiki.hacdc.org/en/Projects/API/HazeExplr).
## Usage
```bash
npm i
node serve.js
```
To use the endpoint, replace 'EMAIL' and 'PASSWORD' with your Haze Explr account details:
```bash
echo "EMAIL:`echo 'PASSWORD' | sha256sum | sed -e 's/ -//'`" | base64
```
Then, make a request to the endpoint with the resulting string as the value of the `auth` query parameter:
```bash
curl "http://localhost:3000/locations?auth=BASE64_ENCODED_STRING"
```
`basicauth_serve.js` does the same thing bus expects account details to be passed via basic HTTP auth, but does not work with QGIS.