Game implemented with Node.js and Vue.js. On fist page player input player name. Then, on button click, starts countdown until game begin. When countdown is over the game begin. On left side of screen is game, while on the right are instruction. Goal of game is to fast click on buttons in right order shown in instructions. In each next level buttons shrink and they have diffent color and position on screen. Player has 60 seconds to click buttons in right order. Game has no defined end. Game is played until player has wrong clicks. When the game is over the player score with top five players and scores is shown.
https://the-fastest-click-game.herokuapp.com/
- Install Node.js
- Install express and PostgreSQL (npm install --save express postgresql)
- Create table in database: CREATE TABLE scoreboard(Id SERIAL PRIMARY KEY, name VARCHAR(30), score INTEGER);
- In /server/queries.js set database connection params
- OPTIONAL change incoming connection in /server/index.js.
- start server with command: node index.js
- Install vuex, axios and vue-router
- start server with command: npm run dev