GithubHelp home page GithubHelp logo

lapisit / angular-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alex-agency/angular-docker

0.0 2.0 0.0 4 KB

Dockerfile for Yeoman with AngularJS generator

Home Page: https://hub.docker.com/r/alexagency/angular-yeoman

Shell 100.00%

angular-docker's Introduction

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

ngBoilerplate generator:

yo ngbp

AngularJS with GulpJS:

yo gulp-angular

Check generated project:

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

Build:

AngularJS Oficial, AngularJS Full-Stack and ngBoilerplate:

grunt build --force

AngularJS with GulpJS:

gulp build

Run unit tests:

AngularJS Oficial, AngularJS Full-Stack and ngBoilerplate:

grunt test

AngularJS with GulpJS:

gulp test

Compile and launch:

AngularJS Oficial, AngularJS Full-Stack and ngBoilerplate:

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, AngularJS Full-Stack and ngBoilerplate:

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

AngularJS with GulpJS:

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.