[Udemy] Brad Traversy - Angular 4 Front To Back [2017, ENG]


Prepare Environment


$ project_name=brad-traversy-angular-4-front-to-back
$ echo $project_name
brad-traversy-angular-4-front-to-back


$ mkdir -p ~/projects/js/angular/${project_name}


$ docker run -it \
-p 80:8080 -p 1337:1337 -p 3000:3000 -p 4000:4000 -p 5000:5000 -p 6000:6000 -p 7000:7000 -p 8000:8000 -p 9000:9000 \
--name ${project_name} \
-v ~/projects/js/angular/${project_name}:/project \
node \
/bin/bash


# apt-get update
# apt-get install -y vim git


# useradd developer -s /bin/bash

# chown -R developer /project/

# su - developer

$ cd /project/


$  vi ~/.bashrc


###############################
# USER DEFINED
. ~/.bash_profile
###############################


$ echo "export PS1='$ '" >> ~/.bash_profile

$ . ~/.bash_profile


# mkdir -p /usr/local/lib/node_modules/
# npm install -g @angular/cli
# su - developer
$ cd /project
$ ng new angularapp
$ cd /angularapp/
$ ng serve  --host 0.0.0.0 --port 8080

And now i can connect to localhost:80

http://localhost