Leaderboard App: This project consists of creating a single page application with HTML, CSS and Javascript that allows to register and list the score of different players in different games, using the Leaderboard API to access and preserve the data.
- Minimalist Design
- Responsive design
- Use of semantic HTML
- source code packaged with Webpack
- Dynamic content with Javascript
To see the application working live, you can click on the following link that contains the demo version:
To get a local copy up and running, follow these steps.
Clone this repository to your desired folder:
cd my-folder-name
git clone [email protected]:NitBravoA92/leaderboard-api.git
In order to install, modify and run this project, it is necessary to have the following applications installed:
- Git: to manage the project versions of source code. You can Download Git here
- Nodejs and NPM: to install and manage the project dependencies. Nodejs and NPM installation guide
- A code editor like Visual Studio Code (Recommended) or any other of your preference. It is necessary to open the project and add or modify the source code. You can Download Visual Studio Code here
It is also important to have at least basic knowledge about webpack tool, HTML, CSS and Javascript languages so you will be able to understand and work with the html and css code of the project.
- Learn the basics of HTML
- Learn the basics of CSS
- JavaScript basics
- Javascript Arrays
- Javascript Objects
- JavaScript modules
- Webpack - Getting Started
Install this project by running the next command into your project folder:
npm install
All the packages and libraries necessary for the project to work will be installed in a folder called /node_module
Run the following command to start the application on a development server:
npm start
You only need to run this command once. If you keep making changes to the files, the installed webpack server will reload the page so you can see the changes immediately.
Open the HTML, CSS or Javascript files and modify the internal code, then run the following command to check if your code has any syntax, indentation or spacing errors:
HTML Linter
npx hint .
CSS Linter
npx stylelint "**/*.{css,scss}"
Javascript Linter
npx eslint .
This will show you a log with details about errors (if any) and changes that would be necessary to solve those errors and improve the code.
Note: Please only modify the HTML, CSS and Javascript files. Do not modify the configuration files of the project.
When all the code changes are ready, run the following command to have webpack generate the bundle files in your ./dist folder. Those files are optimized for use in production.
npm run build
👤 Nitcelis Bravo
- GitHub: Nitcelis Bravo
- Twitter: @softwareDevOne
- LinkedIn: Nitcelis Bravo Alcala
- Create two sections with HTML to submit and display players' score
- Make Leaderboard API call and get for list of scores
- Make Leaderboard API call to add a new score
- Add the final CSS styles to give it a more attractive design
Contributions, issues, suggestions and feature requests are welcome! Feel free to check the issues page.
To do Contributions, please fork this repository, create a new branch and then create a Pull Request from your branch. You can find detailed description of this process in: A Step by Step Guide to Making Your First GitHub Contribution by Brandon Morelli
If you liked this project, give me a "Star" (clicking the star button at the beginning of this page), share this repo with your developer community or make your contributions.
I would like to thank my Microverse teammates for their support. They have supported me a lot in carrying out this project, giving me suggestions, good advice and solving my code doubts.
This project is MIT licensed.