Giter Club home page Giter Club logo

game-exercise's Introduction

A simple HTML and js game. Credit: https://www.w3schools.com/graphics/game_intro.asp

Running the Game To run the game, simply open index.html in a browser. Or, alternatively, run a local server like http-server or local-web-server (required to run the start script from package.json). These are packages that would need to be installed locally or globally on the system.

::: Task :::

  1. Add keyboard events for up, down, left and right arrow keys.
  2. Add user login and logout. Upon login, the user should be able to see their highest score so far.
  3. Track the games played by the user and their scores. [Not local or session storage; at db level]
  4. Allow only 10 attempts per user per day.

Notes -

  • Do not use social or third party auth
  • MongoDB or a comparable no-sql db should be used

Project Structure

	.
	├── api-gateway                 # Nginx API Gateway Configuration
	├── client             	        # Frontend Web App
	├── db                          # MongoDB data
	├── server      	        # API Server
	├── docker-compose.yml		# Development Docker-Compose Configuration
	└── README.md	                # This file

To Run

## Use ubuntu, as docker is mounting volumes from host, 
## may produce issues in windows/macosx

## Start the system in development mode with hot code loading
docker-compose up --build

## To see the running logs of the system
docker-compose logs --follow

## Stop the system
docker-compose down

## To play the game, open browser at: 
http://localhost

Refer to the docker-compose.yml script for detailed information.

API Sheet

## Postman Collection
https://documenter.getpostman.com/view/401954/S11GRzgf

game-exercise's People

Contributors

amrita-syn avatar arpitgo4 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.