This project is an Angular application that fetches and displays a list of Pokemon from an API. The application is composed of several components and services that work together to provide the desired functionality.
The project is structured in the standard Angular way, with the main application code located in the src/app
directory.
The components
directory contains the Angular components used in the application, and the services
directory contains the services.
ItemListComponent
: This is the main component of the application. It fetches the Pokemon data from theApiService
and displays it in a list.
ApiService
: This service is responsible for fetching the Pokemon data from the API.
To set up and run the project, you need to have Node.js and npm installed on your machine.
- Clone the repository
- Navigate to the project directory
- Install the dependencies:
npm install
- Start the application:
ng serve
- The application will be available at
http://localhost:4200
.
The project uses Jasmine and Karma for unit testing. To run the tests, use the command ng test
.
Project is ready on this link on Stackblitz: https://stackblitz.com/github/tizhad/pokemon