Currently the project works with NODEJS 10 LTS environment. Please make sure you MAC/PC has a 10.x node version installed. (https://nodejs.org/dist/latest-v10.x/). You can also try NODEJS 12 LTS as an experiment but support has not been verified.
Run node -v
in a terminal to see which version of NodeJS you have
Welcome to our Star Wars Search web application. Our app is for the Star Wars enthusiasts who would like to find some information for some of their favorite characters and planets.
The application is in this repository in the src
folder. Feel free to browse or modify the code if you need to.
So, what you should expect when using this app are the following:
- When you search for a character and it’s a valid one, then you should be able to see his / her “Gender”, “Birth year”, “Eye color” and “Skin color”.
- When you search for a character and it’s not a valid one, then you should be able to see “Not found” in the results.
- When you search for a planet and it’s a valid one, then you should be able to see its “Population”, “Climate” and “Gravity”.
- When you search for a planet and it’s not a valid one, then you should be able to see “Not found” in the results.
- When you search for either a character or a planet and you get one or more results for it, clear the “Search form” and hit the Search button again, you should then get an empty result list (previous search results are removed).
- You can search for results by clicking the “Search” button or by pressing “enter” on the search field.
- When for example you have searched for a full planet name and you’ve got results, if you switch to People and search for the same thing (that has no matching people based on a partial name), you should get a “Not found” in the results.
- You can have more than one results, for both Planets and Names (partial matching)
- NodeJS 10
- Chrome browser
- Tested on Mac OS X
npm install
Run ng serve
and navigate to http://localhost:4200/
.
You can search by people and planets there.
To search by people use Luke Skywalker
, Leia Organa
or r2
. Use Darth
to see multiple results.
To search by search by planets use Alderaan
, Hoth
.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
or npm run e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
The actual backend we're hitting is SWAPI (Star Wars API)