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
To get a local copy and run, follow these simple steps.
Prerequisities
-
Git
-
Node.js
-
npm
Installation
- Clone the repo
git clone https://github.com/kmariuszk/memoryGame.git
- Install the packages
npm install
- Run the server
npm start
- 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.

