Sign inSign up

actionanand/ng-create

By actionanand

Updated over 2 years ago

Creating angular 17 project without installing anything in host machine with the help of docker.

Image
0

759

actionanand/ng-create repository overview

Create Angular with Docker

Creating angular 17 project without installing anything in host machine with the help of docker.

actionanand/ng-create:17 is using node:20.10.0-bullseye-slim

Pulling create-ng Image

docker pull actionanand/ng-create:tagName
  • Pull Angular 17
docker pull actionanand/ng-create:17

Generating Angular project

  • Creating new angular project
docker run --rm -it --name ng-create -v "folder_path:/app" actionanand/ng-create:17 new

In mac, linux or wsl2

docker run --rm -it --name ng-create -v $(pwd):/app actionanand/ng-create:17 new 

In windows,

docker run --rm -it --name ng-create -v "D:\AR_extra\rnd\docker\test:/app" actionanand/ng-create:17 new
  • creating new Angular project in the current folder
docker run --rm -it --name ng-create -v $(pwd):/app actionanand/ng-create:17 new --directory .
Generating new component, service, etc
  • Creating home component under the folder pages
docker run --rm -it --name ng-create -v $(pwd):/app actionanand/ng-create:17 g c pages/home
Installing packages with 'ng add'
  • we can see example with ng add @angular/pwa. Other packages also uses the same way to be added!
docker run --rm -it --name ng-create -v $(pwd):/app actionanand/ng-create:17 add @angular/pwa

Tag summary

Content type

Image

Digest

sha256:fb8fe1d4c

Size

88.9 MB

Last updated

over 2 years ago

docker pull actionanand/ng-create