https://github.com/calvinmclean/azstocker
Easily get on-demand information about fish stocking in Arizona
https://github.com/calvinmclean/azstocker
Last synced: 3 months ago
JSON representation
Easily get on-demand information about fish stocking in Arizona
- Host: GitHub
- URL: https://github.com/calvinmclean/azstocker
- Owner: calvinmclean
- License: apache-2.0
- Created: 2024-11-03T00:16:22.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-03-07T20:46:34.000Z (4 months ago)
- Last Synced: 2025-03-07T21:27:47.295Z (4 months ago)
- Language: Go
- Homepage: https://azstocker.com
- Size: 229 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AZStocker
[](https://github.com/calvinmclean/azstocker/blob/main/go.mod)

[](https://github.com/calvinmclean/azstocker/blob/main/LICENSE)
[](https://pkg.go.dev/github.com/calvinmclean/azstocker)AZStocker leverages data from [AZ GFD's Stocking Schedule](https://www.azgfd.com/fishing-2/where-to-fish/fish-stocking-schedule/) to provide on-demand information about fish stocking in Arizona.
Check it out at https://azstocker.com!
## How To
Install using `go install` or cloning this repository:
```shell
go install github.com/calvinmclean/azstocker/cmd/azstocker@latest
```### Get API Key
First, a Google API key is necessary to access the stocking schedule Google Sheet.
Follow [these instructions](https://developers.google.com/sheets/api/quickstart/go) from Google to setup a developer account, then get an API key instead of the Oauth credentials file.
Set the API key as the `API_KEY` environment variable or supply as a CLI flag with `--api-key`
### Run CLI
```shell
# get the last and next Winter stocking dates for the Lower Salt River and Rose Canyon Lake
azstocker get -p winter -w "lower salt river" -w "rose canyon lake" --next --last
```### Run Server
```shell
# run the server
azstocker server# use curl to get the last and next stocking dates for all CFP waters
curl 'localhost:8080/cfp?next=true&last=true&showAll=true'
```