- [optional] Create
.env
file and set default variables:
SERVER_PORT_EN=4200 # (4200 by default) angular server port for english version
SERVER_PORT_RU=4201 # (4201 by default) angular server port for russian version
HOST_USER_ID=1000 # (1000 by default) host user id to fix file permissions issue
HOST_GROUP_ID=1000 # (1000 by default) host group id to fix file permissions issue
-
docker compose up [--build]
- to run development container [and rebuild]. PressCtrl+C
to stop container. -
docker compose exec portfolio zsh
- to enter container shell (to install packages and so on)
ng generate component {some component}
ng test --watch
npm install {some package}
...
-
docker compose down [--volumes]
- to stop detached container [and clear volumes] -
docker compose -f idle.docker-compose.yml up
- to start idle container (to upgrade angular and so on)
-
Use
ng test
to run unit tests once -
Use
ng test --watch
to run unit tests in watch mode. -
Use Behavior Driven Development principles for development process.