Angular
by Juan Manuel González Garzón
Instalar
#!/bin/bash
#sudo apt install nodejs
node -v
#sudo apt install npm
npm -v
#mkdir ~/.npm-global
#npm config set prefix '~/.npm-global'
#vim ~/.bashrc # ==> #export PATH=~/.npm-global/bin:$PATH
#source ~/.bashrc
#npm install -g @angular/cli
Crear proyecto
ng new my-project
Desplegar servidor de pruebas
ng serve [--open] [--port]
Empaquetar o desplegar bajo configuraciones de producción
`ng build --prod` || `ng serve --prod`
Correr test de e2e con Proactor
ng e2e
Generate components, routes, services and pipes
ng generate xxxxxxxxxx