This project was generated with Angular CLI version 18.1.0.
Once you have checked out to this project branch, please run the below command to install the dependencies. I am putting the dependency flag keeping in mind the various versions of Angular CLI we all might be having in our systems.
npm install --legacy-peer-deps
The above command should install all the dependencies.
Run ng serve
or ng serve --open
or ng s -o
for a dev server. If you run the command with the '--o' flag, a browser tab will open with the app loaded, else navigate to http://localhost:6001/
. The application will automatically reload if you change any of the source files.
As soon as you move to the 'Grid Data' or 'Chart Data' routes, the app will make a call to GitHub GraphQL endpoint to fetch the repository data. In this regard, GitHub endpoint expects an authorization token to be in the header of the request.
You can get your GitHub access token from here. Once you copy this token, please go to 'LocalStorage' of your browser and add a key-value pair there like this:
token: ${your-token}
This will provide the app the required access token and your call will go through.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.