Hosted URL : https://fyle-internship-challenge-23-dusky.vercel.app/
- Prerequisites
- Installation
- Running the Application
- Running Unit Tests
- Assumptions
- External Packages Used
Before running the application and unit tests, make sure you have the following prerequisites installed on your system:
- Node.js: The runtime environment for running Angular applications.
- Angular CLI: The command-line interface for Angular applications.
-
Clone the GitHub repository to your local machine:
git clone https://github.com/sai-1712/fyle-internship-challenge-23.git
-
Navigate to the project's root directory:
cd fyle-internship-challenge-23
-
Install the project dependencies using npm:
npm install
To run the GitHub User Search Application, follow these steps:
-
Ensure you have completed the installation steps as mentioned above.
-
Open a terminal and navigate to the project's root directory if you're not already there.
-
Run the following command to start the application:
ng serve
-
The application should now be running locally. Open your web browser and access the app at
http://localhost:4200/
.
The assignment requires unit tests with 100% code coverage for at least one component and one service. To run the unit tests, use the following commands:
-
For the service unit test:
ng test --include=**/api.service.spec.ts
-
For the component unit test:
ng test --include=**/app.component.spec.ts
Ensure that your unit tests achieve 100% code coverage, and you can view the code coverage report after running the tests.
Please note the following assumptions made during the development of this assignment:
- The assignment focuses on searching for GitHub users, displaying user details, and listing their repositories.
- The application assumes an internet connection is available to fetch data from the GitHub API.
The assignment uses the following external packages to enhance functionality and development:
- NgxPaginationModule: Used for implementing pagination in the user repositories list.
- NgxSkeletonLoaderModule: Used for providing skeleton loading animations to improve the user experience.
Please make sure to install these packages during the installation process, as mentioned above.
For more information or any assistance, please contact:
Mail: ravirala.sai1712@gmail.com