This project was generated with Angular CLI version 8.0.4.
Install Docker.
Clone the repository:
git clone [email protected]:manuerumx/angular-cucumber.git
cd angular-cucumber
Start the Docker Containers:
docker-compose up
Update your hosts file:
echo -e "\n\
127.0.0.1 my-project.local \n\
" | sudo tee -a /etc/hosts
Navigate to http://my-project.local:4201/
. The app will automatically reload if you change any of the source files.
Run docker-compose exec my-project 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 docker-compose exec my-project ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run docker-compose exec my-project ng test
to execute the unit tests via Karma.
The project is configured to run headless Chrome container by default. But is possible to see the results of the tests, accessing the next link http://my-project.local:9876/
Run docker-compose exec my-project ng e2e
to execute the end-to-end tests via Protractor.
The project is configured to run Chrome and Firefox as selenium nodes.
If you wish to view the browser, you can use a VNC client to connect to those containers.
The password is secret
.
- Chrome
vnc://my-project.local
- Firefox
vnc://my-project.local:5901