Sign inSign up

alexagency/angular-yeoman

By alexagency

Updated almost 11 years ago

Yeoman with Angular generators

Image
2

100K+

alexagency/angular-yeoman repository overview

alexagency/angular-yeoman

Dockerfile for Yeoman with AngularJS generators

Installation

Install Docker Machine.

Create virtual machine:

docker-machine create -d virtualbox dev

Get IP address:

docker-machine ip dev

Connect to virtual machine:

docker-machine ssh dev

Go to shared (between host and virtualbox) home directory:

cd /Users/<MAC USER>
cd /c/Users/<WINDOWS USER>

Run alexagency/angular-yeoman container from Docker Hub:

docker run -it --rm -p 9000:9000 -p 3000:3000 -p 3001:3001 -v $(pwd)/angular:/app alexagency/angular-yeoman

Initiate one of Yeoman generators:

AngularJS Oficial generator:

yo angular

AngularJS Full-Stack generator:

yo angular-fullstack

AngularJS with GulpJS:

yo gulp-angular

Check generated project:

/Users/<MAC USER>/angular
/c/Users/<WINDOWS USER>/angular

Build:

AngularJS Oficial and AngularJS Full-Stack:

grunt build --force

AngularJS with GulpJS:

gulp build

Run unit tests:

AngularJS Oficial and AngularJS Full-Stack:

grunt test

AngularJS with GulpJS:

gulp test

Compile and launch:

AngularJS Oficial and AngularJS Full-Stack:

sed -i s/localhost/0.0.0.0/g Gruntfile.js
grunt serve --force

AngularJS with GulpJS:

gulp serve

Browse to Angular webapp:

AngularJS Oficial and AngularJS Full-Stack:

http://<virtual machine ip>:9000/

AngularJS with GulpJS:

http://<virtual machine ip>:3000/
http://<virtual machine ip>:3001/

Tag summary

Content type

Image

Digest

sha256:cacec29d5

Size

197.2 MB

Last updated

almost 11 years ago

docker pull alexagency/angular-yeoman