Skip to content

lbrindze/hotpresidents.com

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hotpresidents.com

Code base for hotpresidents.com server

WIP...

To start service for local development, set the following Env Vars and run:

export DATA_LOAD_URI="..."
export API_KEY="..."
export SAVE_FILE="..."
export SAVE_TIMEOUT=30
export HOST_ADDRESS="localhost"
export HOST_PORT=8080

cargo run

Data is saved to a save file which is loaded during startup, this is configured with SAVE_FILE envvar. to save counters send an http get request to /save_state and to reload the data after a change to the SAVE_FILE or the backing airtables base send an http get request to /reload_data or restart the server.

About

Code base for hotpresidents.com server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •