Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌮 Taco Spin Service

This Go web service simulates a taco spinning in the wind of Chicago. The spin rate is derived from the current wind speed using a windmill RPM approximation.

Features

  • /start: Starts tracking taco spins
  • /stop: Stops tracking
  • /spins: Returns total spins since start

Setup

  1. Create a .env file in the src/ directory or set OPENWEATHER_API_KEY in the environment. This key should actually be an https://aprs.fi api token owned by the user.
  2. Build and run:
    docker-compose up --build

Sample API usage

curl -X POST localhost:8080/start
curl localhost:8080/spins
curl -X POST localhost:8080/stop

Enjoy your wind-powered taco! 🌮💨

About

A server for spinning a taco with endpoints to start and stop it.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages