- Node.js at least in version 18.0.0
- Download or clone the repository
- You can simply run
git clone git@github.com:KamilCodemate/Memory-Game.git - Run
npm ciboth in the/clientand/serverdirectories - You may to install typscript globally
npm install -g typescript - Run
npm run startboth in the/clientand/serverdirectiories
The game uses localStorage to save important game data which means it is impossible to play the game in diffrent windows of the same browser. You may need to use the second browser is you would like to run the game on one machine.
It is possible to play the game on diffrent machines. The first option is host the app in the remote server. The second option is provide IPv4 adress in the adress bar instead of localhost keyword. Both devices must be connected to the same network.
On Windows: When starting the project, specifically when starting the local server, you may run into an error saying "execution of scripts is disabled on this system" or something like that. Then open powershell in administrator mode and type Set-ExecutionPolicy RemoteSigned. This will allow you to run all sorts of scripts on your computer needed to run the local server. This mode increases the vulnerability of the computer to malware attacks, so it is recommended to set the old value back after use using Set-ExecutionPolicy Restricted.
Notify me of them via kamil.codemate@gmail.com or create an issue.