This is a reacruitement task I've made once - the Simple Roulette Game. It's a basic roulette game with quite advanced js based animations.
- Run first:
npm run install
# or
yarn install
- To start the development server:
npm run dev
# or
yarn dev
and visit localhost:3000
- To run E2E tests:
npm run test
# or
yarn test
- Site is pre-rendered on the server, but canvas element with animation is only rendered in the browser
- I've used
Pixi.js
+GreenSock
for canvas and animation - I've used
Cypress
for E2E testing. The backend is mocked in the tests and I usedata-testid
to access page elements Typescript
andeslint
is set up- The roulette spin result is actually coming from the backend before the animation, but a user only sees the result after the animation is over.
- I've used scss modules for styling