Casino template
- OS: MacOS, Linux. In case of Windows, it is more practical to use WSL
- nodejs version: 10.16.0
- npm version: 6.9.0
- yarn version: ^1.16.0
Clone repo sample-casino-frontend
git clone https://github.com/DaoCasino/sample-casino-frontend.git
Install dependencies using yarn
cd sample-casino-frontend
yarn
For local development create .env
file
BACKEND_ADDR=YOUR_BACKEND_ADDR
yarn start
- start the project (development)yarn build
- build the projectyarn test
- test the projectyarn lint
- lint the javascript filesyarn lint --fix
- linting, formating и error fix javascript
Container build and launch web server at port 8888
docker build -t casino-frontend --build-arg BACKEND_ADDR=localhost:8080 .
docker run -it --rm -p 8888:80 casino-frontend
Formatting rules to be appliied:
See formatting rules .eslintrc.json
VScode extensions:
- react-scripts - create-react-app
- react
- react-router v5
- redux
- react-redux
- redux-saga - lib (middleware) based on generators to handle side effects better
- reselect - library of selectors for redux with memoization
- seamless-immutable - immutable structure
- material-ui - material UI framework