Note: This project was made when the Angular CLI was immature. I now recommend using the CLI for starting new Angular projects.
This is a basic application that you can use to bootstrap your new Angular project.
To get started, change all occurrences of "app" in this project to your app name.
- Angular
5.1.0 (2017-12-06) - Webpack 3
- Linting (TSLint & Codelyzer)
- Unit Testing (Karma & Jasmine)
- E2E Testing (Protractor)
- Docker
- Routing
/home: Not lazy-loaded/about: Lazy-loaded
- HTTP Request via Service (
GETpublic IP address) - Dev build (via Webpack Dev Server), and Prod build (via AOT)
git clone https://github.com/camargo/ng-seed.git
cd ng-seed
npm cache clean
npm installrm -rf node_modules
rm -rf distnpm run build:devVisit http://localhost:8080/ to view the running application.
Build image and run container from that image:
npm run build:prod
docker build -t app-image $(pwd)/dist
docker run --name app -d -p 8081:80 app-imageOr just run container:
npm run build:prod
docker run --name app -v $(pwd)/dist:/usr/share/nginx/html:ro -d -p 8081:80 nginxVisit http://localhost:8081/ to view the running application.
npm run lintnpm run unitnpm run e2e