An open API service indexing awesome lists of open source software.

https://github.com/benstroud/nps_webcams

Recreational programming. A simple web app to display National Park webcams. Go/Gin. NPS API.
https://github.com/benstroud/nps_webcams

Last synced: 10 months ago
JSON representation

Recreational programming. A simple web app to display National Park webcams. Go/Gin. NPS API.

Awesome Lists containing this project

README

          

# National Park Service Webcam Gallery

This is a simple Go/Gin web app to display a gallery of the various National
Park Service webcams as discovered through the NPS API. This is a recreational
programming project that I thought would be useful and fun to explore.

I've hosted the application publicly using Railway:

[![Deploy on Railway](https://img.shields.io/badge/Deploy%20on-Railway-%230A0A0A.svg)](https://railway.app/)

## Running locally

An API key can be obtained from the [NPS Developer Resources "Get Started"
page](https://www.nps.gov/subjects/developer/get-started.htm).

## To run

```bash
export NPS_API_KEY=
go run .
```

Then visit in your browser.

## Screenshot

![Screenshot of web gallery](readme_assets/preview.png)

## Diagram

The dataset is very small and currently stored in memory. The NPS API is used on
app startup and then every 30 minutes to dynamically refresh the data.

![Sequence diagram](readme_assets/mermaid_diagram.png)

## License

MIT