The CLI minesweeper project was originally asked as an interview question. Found it interesting to put it on GitHub as coding this game was actually pretty fun! (Even though I failed 🤫). Then wanted to try out Svelte framework so created a web app out from it. You can still find the original CLI version version here https://github.com/Shaance/minesweeper/releases/tag/v1.0.0
If you have Docker simply run docker-compose up
from the root of the repository and connect to localhost:5000
. Else follow the instructions below:
nvm use
, if the required node version is not installed please follow the instructions to install itnpm i
to install dependenciesnpm run build
to transpile TS to JSnpm start
and connect to localhost:5000
npm run test
npm run cy:run
or you can also run against another url by changing the base url variable in cypress.json
file before running npm run cy:run
on_pull_request.yml
has been set to build, run unit and integration tests for every pull request.Rules can be found here https://www.instructables.com/How-to-play-minesweeper/.