This project was generated with Angular CLI version 14.0.7.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
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.
- Clone the repository and download the source code
- do npm i --force ( this project is using angular 14+)
- to run the project: npm start
- for pagination use ngb-bootstrap, for notification header ng-toaster, bootstrap, fontawesome.
- It uses Okta-sign-in widget using okta - @okta/okta-signin-widget, for authentication - "@okta/okta-auth-js. (uses client-id and client-issuer from https://developer.okta.com/ in oidc defined in my-app-config file
- It uses a self-signed certificate generated using - https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl
- and as it uses a self-signed certificate, I have given this command in npm start - ng serve --ssl=true --ssl-key=./ssl-localhost/localhost.key --ssl-cert=./ssl-localhost/localhost.crt
- This project used an authentication service, to add a bearer token to those API calls which have an access token, and as the request is immutable we clone it and add a bearer token.
- to demonstrate the role-based access this project has a specialized page to role-based access for authenticated users to see their order history and members discount page.