Touutae-lab / Guessing-Game

Golang simple Guessing game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Guessing-Game

Golang simple Guessing game

Usage

go run main.go

listened at http://localhost:8000/

  • Backend Task

    • API endpoints

      • /login

        • ✅ Very simple yes / no with password combination

        • ✅ Return "token"

      • /guess

        • ✅ Access to this endpoint needed to be authenticated via token returned from login

        • ✅ Guess the hidden number - if correct, return HTTP 201 and regenerate the number

      • bonus

        • ✅ Use of middleware for authentication

        • ✅ If we wanted to hide the guess data by not using GET, can we use other method to do so (POST)

About

Golang simple Guessing game

License:MIT License


Languages

Language:Go 100.0%