Quick way to generate angular 2 apps
10K+
Angular 2 Cli container to create new Angular2 app without having to install all the dependencies.
Use the following command to get up and running:
docker run -i -t -p 4200:4200 -v <host_folder_to_mount>:/mnt/angular2 mattchaffe/matt-angular2
This will then give you a bash prompt which you can use to create a new Angular 2 app:
ng new <my_app>
cd <my_app>
ng serve --host 0.0.0.0 --port 4200
Visit: <docker_machine_ip>:4200 to view the running app
You will be able to edit the code on your on host with the folder mapping used above and you can edit and save the code in your favourite IDE.
To generate new components without having to stop and start the app again you can use the following from another terminal:
docker ps
docker exec -it <container_id> bash
Using the container_id from the docker ps command you can connect via bash, cd <my_app> and run ng generate component <my_component>
Content type
Image
Digest
Size
270 MB
Last updated
almost 10 years ago
docker pull mattchaffe/matt-angular2