This is an implementation of the classic 15-puzzle, generelized for N size , built with React, Redux and Bootstrap.
Node.js (version>=12)
npm install
npm start
runs webpack dev server , available on port 3000
npm run build
packaged files will be under ./dist
npm test
npm run test:coverage
npm run test:all
Local server, production mode - build, run on a local server (port 5000) and run e2e test against it:
npm build
npm run start:prod &
npm run e2e
local server, dev mode - run a local dev server (port 3000) and run e2e tests in dev mode against it:
npm start &
NPUZZLE_E2E_MODE=dev npm run e2e
run against a remote server - set the e2e URL:
NPUZZLE_E2E_URL=http://<host>:<port> npm run e2e
This project is licensed under the MIT License - see the LICENSE file for details