For documentation I recommend you to take a look at the project WIKI
Lucky Game is a Single Page Application (SPA) created using the Vue CLI 4.x. My editor of choice was Visual Studio Code.
After downloading the repo, navigate to it's directory with your favorite command line utility.
npm install
to restore dependencies.
npm run serve
to host and run locally in debug mode.
set NODE_ENV=production
then npm run build
to build for production.
npm run test:unit
to run tests.
NOTE: The linter won't allow you to compile if any of it's rules are broken. Try running npm run lint
.
Before starting work on this, I had to learn Vue.js. I've quickly finished a course on Pluralsight called "Vue.js Fundamentals". It took me four days to get started working on this assignment.
I started by creating the components based off the provided mockups. After that I connected the app to the web socket with the snippet I was given in the assignment document. I used Vuex store to manage my state and Vue Router to manage navigation.
I don't know if this is intentional but I've noticed that the socket connection always returns the same data and the countdown time never gets updated.
That's about it.