The "Hello from Angular!👋" application is just a starter to show a minimalist Angular app.
Clone this repository:
https://github.com/abdounikarim/poc-angular
Go on the project root folder:
cd poc-angular/
Execute this command to launch docker container in dev:
docker compose -f docker/compose.yaml up -d --build
Install JavaScript dependencies:
docker compose -f docker/compose.yaml exec node pnpm install
Or use the equivalent command with npm or yarn
There's no need to configure anything before running the application. There are 2 different ways of running this application depending on your needs:
Option 1. Run the application in dev mode
Run this command:
docker compose -f docker/compose.yaml exec node ng serve --host 0.0.0.0
Then access the application in your browser at the given URL (http://localhost:4200 by default).
Option 2. Run the application in prod mode
docker compose -f docker/compose.yaml exec node ng build
You now have your fresh JavaScript files for production 🚀.
You can check everything is OK by running the ng serve
command in the output directory created by the ng build
command.
Execute this command to run tests:
docker compose -f docker/compose.yaml exec node ng test --watch=false