- node v6.9.x (tested with 6.9.1 on OSX).
- clone the repository;
- go to the project folder;
- from a terminal run
npm install
- this will install all the project dependencies; - after the installation is complete run
npm run build
- this will generate adist
folder that contains the compiled files (if running on a windows the terminal window may require Administrator permissions); - after the build is completed run
npm run start
- this will create a dummy server usinghttp-server
to serve the static files; - in a browser open
http://localhost:8080/dist
; - if you want to avoid having
/dist
in the path runnpm install -g http-server
, go to the/dist
folder runhttp-server
and openhttp://localhost:8080
in the browser;
- if you want to purchase any product you first need to insert money, this can be achieved by clicking on the coins or notes on the right side;
- after you have some money you just need to enter the code of the product you want by click each digit individually from the keypad.
- if you want to make changes to the project it's better to enable the webpack
watch
flag in./webpack/build.js
so that the files are re-built on every change.