This project shows several core features of Angular including:
- Components
- Data Binding
- Communication between components
- Services
- Routing
-
Install the Angular CLI
npm install -g @angular/cli
-
Run
npm install
at the root of this project -
Run
ng serve -o
-
Install the Angular CLI
npm install -g @angular/cli
-
Run
npm install
at the root of this project -
Build the project
ng build
-
Ensure that you have volumes (file sharing) enabled in the Docker Desktop settings.
-
Run
docker-compose build
-
Run
docker-compose up
-
Visit
http://localhost
-
Run
docker-compose -f docker-compose.prod.yml build
. This uses a multi-stage Docker build process to create the nginx image for the Angular app. -
Run
docker-compose -f docker-compose.prod.yml up
and visithttp://localhost
. -
Run
docker-compose -f docker-compose.prod.yml down
once you're done.