fed1k / Leaderboard

The leaderboard website represents scores submitted by different players. It also allows you to submit your score. All data is preserved in the Leaderboard API service of Microverse.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Leaderboard

The leaderboard website represents scores submitted by different players. It also allows you to submit your score. All data is preserved in the Leaderboard API service of Microverse.

Built with

  • HTML
  • CSS
  • JavaScript
  • Webpack
  • FontAwesome icons

Getting started

  1. Open VSCode or terminal and navigate to the folder where you would like to clone the project.
  2. Type "pwd" to see your working directory.
  3. Clone repository(git clone "branch-link")

API information

The Leaderboard API service was created by Microvere.
Base URL: https://us-central1-js-capstone-backend.cloudfunctions.net/api/
To create a game, send a POST action to Base URL + /games, with the name of the game. Parameters example for POST action:

{ "name": "Firdavs" }

Return value: unique identifier for the game

{ "result": "Game with ID: Zl4d7IVkemOTTVg2fUdz added." }

To submit a score, send a POST action to Base URL + /games/ + :id + /scores/. E.g: Base URL/games.lkZvzTSRH77IZXCC4fo9/scores/. Parameters example for POST action:

{ "user": "John Doe", "score": 42 }

Authors

Show your support

Give a ⭐️ if you like this project! Acknowledgments

Microverse for amusing support and guidance. Microverse code reviewers.

📝License

Coming soon.

About

The leaderboard website represents scores submitted by different players. It also allows you to submit your score. All data is preserved in the Leaderboard API service of Microverse.


Languages

Language:JavaScript 54.2%Language:CSS 26.2%Language:HTML 19.6%