Skip to content

kmariuszk/memory-game

Repository files navigation

Memory Game

About The Project

Alt text Alt text

The Memory Game web application was created mainly for educational purposes. It helped me to understand how to create a web application with its own server. It is a simple application which allows users to play with each other. The server can host (theoretically) an infinitely amount of games and stores basic statistics about them. The server is an HTTP server which uses WebSockets for real-time communication between the players.

Built With

  • HTML

  • JavaScript

  • Express.js

  • CSS

  • EJS

Getting Started

To get a local copy and run, follow these simple steps.

Prerequisities

  • Git

  • Node.js

  • npm

Installation

  1. Clone the repo

git clone https://github.com/kmariuszk/memoryGame.git

  1. Install the packages

npm install

  1. Run the server

npm start

  1. Access the website by typing 'localhost:3000' to the address bar of the browser

Disclaimer: mentioned instructions allow the user to run a server working only in the user's local network. If a user wants to play with somebody using a different network then I suggest using ngrok.com. Follow their instruction to set it up and edit the first line of /myapp/public/javascripts/interactions.js file as described in it. Then, run a ngrok server

ngrok tcp 3000

and follow the instructions above.

About

Dynamic web application allowing users to play in the Memory game online

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors