This Game will let you hit the spacebar to score higher. So, how many times can you press the spacebar in 5,10 or 30 seconds? Try not to break your keyboard :)
Name | Github Page |
---|---|
Jamal Farah | Profile Page |
The idea is to implement a simple single-page application (SPA) using the vanilla JavaScript script.
This game lets the player hit the space bar in a small frame of time, the faster he clicks, the closer to breaking previous players' record.
When the game is over it'll allow you to type your nickname, then it'll render the list of top 10 scores, otherwise, it'll ask you to play again or to go to the main page.
Nested Fetching, instead of using React, this project made sure to focus on fetching.
- Vanilla Javascript for the Front-end
- Rails API for the Back-end
- PostgreSQL as a backend Database-API
- Fetching data to the backend
- Plain CSS, No Frameworks
- Animate.CSS for animations
-
Clone this repo
-
Cd to the backend file and do this:
$cd backend
-
Inside the backend file:
$rails db:reset && rails s -p 3000
-
Now you can go to the frontend file and open the ( index.html ) file
-
Enjoy the game