2.5 KiB
Frontend
This project was generated with Angular CLI version 9.1.7.
Angular CLI
Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Code scaffolding
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
.
Build
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Deploy with Docker
Prerequisite: Docker and/or Docker Compose have to be installed on your system
The Docker installation instructions for most operation systems can be found here: https://docs.docker.com/get-docker/
The Docker Compose installation instructions for most operation systems can be found here: https://docs.docker.com/compose/install/
Quick Deployment with Docker Compose
- Clone the git repo
- Open the cloned repo's folder in a shell of your choice (as long as it supports Docker)
- Tell Docker Compose to build - if it hasn't already been built - and run the app with
docker-compose up
Other useful commands:
- Just build:
docker-compose build
- Build before running:
docker-compose up --build
- Run attached (in the background):
docker-compose up -d
- Stop:
docker-compose down
- Restart:
docker-compose restart
Build the Container yourself (and run it)
- Clone the git repo
- Open the cloned repo's folder in a shell of your choice (as long as it supports Docker)
- Tell Docker to build the app under the name "frontend" with
docker build -t taskboard_frontend .
- Tell Docker to run the app on port 8080 with
docker run -p 8080:80 taskboard_frontend
Other useful commands:
- Run detached:
docker run -d -p 8080:80 taskboard_frontend
- Run under specified name:
docker run -p 8080:80 --name frontend taskboard_frontend