Skip to content

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

License

Notifications You must be signed in to change notification settings

benstroud/nps_webcams

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

https://npswebcams-production.up.railway.app/

Deploy on Railway

Running locally

An API key can be obtained from the NPS Developer Resources "Get Started" page.

To run

export NPS_API_KEY=<your key>
go run .

Then visit http://localhost:8080/ in your browser.

Screenshot

Screenshot of web gallery

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

License

MIT

About

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

Topics

Resources

License

Stars

Watchers

Forks