This project was generated with Angular CLI version 13.3.0.
The application starts on http://localhost:4200.
This project has the purpose to get involved with Angular (TypeScript, NPM), Docker and GitHub (Actions, Packages, Projects).
The application is an Angular Web UI to provide a user interface for the underlying backend. The UI acts like a REST Client and supports mobile and desktop browsers.
Browser
|
Routing
|
Stores --> Components ----
| |
Interceptor --> Services --> Models
|
REST API
- Browser =
localhost:4200
- Routing = routing module
- Components = component-package
- Stores = store-package
- Services = service-package
- Models = model-package
- Interceptor = interceptor-package
- REST API =
localhost:8080
- Download and Install NodeJS v16.14.1+
- Install Angular CLI v13.3.0:
npm install -g @angular/cli@13.3.0
- Download and Install Docker
- Build Image:
docker build -t fresh-planner-ui .
- Build Image:
- Angular Material:
ng add @angular/material
- Flex Layout:
npm i -s @angular/flex-layout @angular/cdk
- Tool: Demo
- NGRX Store with DevTools:
ng add @ngrx/store@latest
&ng add @ngrx/store-devtools@latest
- Tool: Browser Plugin
- Trigger: all pushes
- Executes
npm install
&npm run build --prod
- No tests yet
- Trigger: manual or on published release
- Executes
docker build
- Execute
docker push
to GitHub Packages
- Divided into Builder and Runner
- Image with Nginx Alpine and the distribution
- Exposes
Port 4200
- Uses by default API at
Port 8080
- Detailed configuration: environment.prod
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.