Skip to content

Gamecube762/ShounicBestClips

Repository files navigation

ShounicBestClips

Setup

  • Install Golang
  • git clone the project
  • go mod tidy to install get dependencies
  • go run . to run the project on port 8081

Docker

  • Install Docker
  • docker build . -t shounic-best-clips to build the docker image
  • docker run --rm -p 8081:8081 -v shounic-best-clips-data:/app/data shounic-best-clips to run the container
  • docker volume rm shounic-best-clips-data to delete the database volume

Routes

  • / Main page
  • /vote/next Get the next vote for the user returns the next vote.
  • /vote/submit?choice= Submit a vote, returns the next vote.
  • /vote/deadline Get the voting deadline as a unix time string

/vote/next returns the following json for the next vote:

{
    "a": string,
    "b": string
}

Unique response codes:

  • 204 - The end user has completed all their votes.
  • 420 - A predetermined deadline has passed and voting is no longer allowed.
  • 460 - The end user's vote has been rejected by the vote rate limit system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 5