We want you to have fun doing this test so we’ve chosen a subject matter that is a little unusual, but should be more fun that other tests you may have done.
Using SWAPI: https://swapi.co/documentation
Build an application to select random people or starships and render their details to see who would win based on a common attribute. i.e. people have mass and starships have crew. A person with greater mass wins, a starship with more crew wins.
The app should render the attributes from the resource in a simple web page that allows you to ‘play’ the game.
Once two cards are displayed the app should declare one of the cards a winner based on the higher common attribute.
Having displayed the winning card, the user should be able to play again using an action button that repeats the same request.
Bonus points! These are not required, just adds to your portfolio in an interview: 1 - Score counter. If there are two players, left and right, show how many times each side has won. 2 - Option to select which resource to play against 3 - Use http://materializecss.com/ and display the details in a card http://materializecss.com/cards.html and the winning attribute in chips http://materializecss.com/chips.html.
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
git clone <repository-url>
this repositorycd star-wars-top-trumps
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.