- 📖 About the Project
- 💻 Getting Started
- 👥 Author
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
In this project, I recreated a simple wireframe template for a Leaderboard. This simple web page was built using webpack and served by a webpack dev server.
- HTML
- CSS
- JavaScript (ES6)
- Webpack
- Used gitflow.
- Used ES6 modules, with import and export.
- Created an npm project with webpack.
To get a local copy up and running, follow these steps.
Clone this repository to your desired folder
In order to run this project you need: Git should be installed on your local machine to clone it using HTTP or SSH. Otherwise you can download the zip file.
You can clone this project by using the command below
Command : git clone git@github.com:elarhadu/Leaderboard.git
$ npm install
$ npm start$ open src/index.htmlconst newGame = async () => {
const gameTitle = {
name: 'Space Runners',
};
const response = await fetch(
'https://us-central1-js-capstone-backend.cloudfunctions.net/api/games',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(gameTitle),
},
);
const result = await response.json();
console.log(result);
};
newGame();
const fetchData = async () => {
const gameId = 'copy id generated in the console';
const response = await fetch(
`https://us-central1-js-capstone-backend.cloudfunctions.net/api/games/${gameId}/scores`,
);
const result = await response.json();
const data = result.result;
displayBoard(data);
};
👤 Author
- GitHub: @elarhadu
- Twitter: @elarh_
- LinkedIn: Emmanuella Adu
- I will implement a filter that utilizes the API to organize the results by score.
- I will add an error message if the user wants to add new items.
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project please give me a ⭐️
I would like to thank Microverse for the wireframe for this project.
This project is MIT licensed.