Coder Social home page Coder Social logo

mrigorir / leaderboard Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 590 KB

The Leaderboard app displays scores submitted by different players. It also allows you to submit your score. All data is preserved thanks to the external Leaderboard API service.

License: MIT License

JavaScript 81.04% CSS 18.96%
html5 css3 javascript bootrap-5 api

leaderboard's Introduction

Leaderboard

The Leaderboard app displays scores submitted by different players. It also allows you to submit your score. All data is preserved thanks to the external Leaderboard API service.

What was build in this part of the project:

  • Use Webpack dependencies for better JS and CSS file performance.

  • Bootstrap 5.

  • Font awesome 5.

  • API features.

Image Preview

Screenshot Main Page

Getting Started

To get a local copy up and running follow these simple example steps:

  • On the project, GitHub page, navigate to the main page of the repository

  • Click on a button named Code

  • Copy the project URL as displayed on HTTPS tab

  • If you're running Windows Operating System, open your command prompt. On Linux, Open your terminal

  • Change the current working directory to the location where you want the cloned directory to be made. Leave as it is if the current location is where you want the project to be.

  • Type git clone, and then paste the URL you copied in Step 3.

    $ git clone https://github.com/mrigorir/leaderboard.git Press Enter key

  • Your local copy will be created.

  • Please note that you must have Git installed on your PC, this can be done here

  • After you get the project aiming to the desired directory, you need now to install ruby globally and follow the steps below:

Github Actions

To make sure the linters' checks using Github Actions work properly, you should follow the next steps:

  1. On your recently forked repo, enable the GitHub Actions in the Actions tab.

  2. Create the feature/branch and push.

  3. Start working on your milestone as usual.

  4. Open a PR from the feature/branch when your work is done.

Usage

  • Make sure you have npm and node installed in your terminal.

  • I recommend the use of VS code as a code editor, but you can use whatever you want.

  • Run in your terminal npm run server to see webpack html file in action.

  • Run npm install express in case you get the error after running the server.

  • To create a new game, you need to request for a unique ID to serve as a container for

    names and scores, and pass it any name you want, e.g: Marco's game.

  • For this project, an ID is already been used.

  • To get/add scores from the API, use this url followed by: /games/your_created_id/scores/

  • To set new scores into the API, just put your name and a score number in the form, then hit the paper plane button.

  • Look at the leaderboard's info and check if your info shows up.

Author

๐Ÿ‘ค Marco Parra

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a โญ๏ธ if you like this project!

Acknowledgments

  • Microverse Activities

๐Ÿ“ License

This project is MIT licensed.

leaderboard's People

Contributors

mrigorir avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.