Star Wars card game built using SWAPI. The application allows a user to select a random card from one of the card decks and clash them by comparing the common attribute. The stronger card wins. The game tracks score for each player.
You can see it in action right here.
Install dependencies:
$ npm install
IntelliJ IDEA / WebStorm / PhpStorm:
-
Install the following plugins:
-
Go to
File > Settings > Languages & Frameworks > JavaScript > Prettier
Check
Run on save for files
and use below as a value:{**/*,*}.{js,ts,html,scss,json,md}
From now on every change in code base will be automatically formatted by Prettier.
-
Run server:
$ npm start
-
Navigate to http://localhost:4200/.
-
Change some code.
Run unit tests:
$ npm run test
Run E2E tests:
$ npm run e2e
Run build command:
$ npm run build
The build artifacts will be stored in the dist/
directory.