- Using NodeJS
- Install NodeJS
- Clone the repository to local.
- Install libraries:
npm install
- Run:
npm start
- Run Manually
- Download the source as zip folder.
- Extract the Zip file.
- Open the
index.html
in any browser.
This is very simple chat client using Javascript
-
Navigate to
localhost:8080
if you are starting using NodeJS -
Run
index.html
in case you are not using NodeJS and downloaded the source as zip file.
The Client expects that the Server is running at 'http://localhost:1337',
and exposing the api /casino
.
- Expecting API response as below format
[{"values":[1,1,5]},{"bonus":false},{"result":"Small Win"}]
- Score points has also been added
- No Win - 0 points
- Small Win - 10 points
- Big Win - 100 points.
- Bonus is received randomly from server.
- This enable a free play in the game for the user.
JavaScript Standard Style is been used for styling and intendation.
- Run
npm test
This executes standard --fix
from package.json
scripts
Unit Testing is enabled using mocha and chai.
- Run:
npm test
This executes webpack && standard --fix es6/*
from package.json
scripts
unit test has not been implemented for this one yet.
- Best Viewed in Desktop and Landscape view in mobile devices without address bar.
-
Below desktop browsers are supported based on Testing in Windows and MAC
- Google Chrome
- Mozilla Firefox
- Safari
- Opera
- Microsoft Edge
-
Below mobile devices were supported, tested in Chrome, Firefox, Opera and Safari.
- iPhone 5SE
- iPhone 6
- iPhone 6s
- iPhone 5s
- Samsung Galaxy S4
- Samsung Galaxy Note 2
- One Plus 2
- Samsung E5
- Sony Experia C5 ultra
- HTC Desire 630
- Moto G4 Plus
- iPhone 6s Plus
- Red Me Note 4
- Currently not supported in IE.
Feel free to report any bugs. I will be more than happy to fix them right away.