Link to Angular deploy demo
This project was generated with Angular CLI version 1.2.4.
Github pages is for front-end deployment only.
1.npm install -g angular-cli-ghpages
2.ng build --prod --base-href https://<profile_name>.github.io/<repo_name>/ --deploy-url=https://<profile_name>.github.io/<repo_name>/
3.ngh --dir=dist/<repo_name>
4. .angular-cli.json project name should be the same as <repo_name>
5.git remote repo should be marked as public too, otherwise, it won't be able to post the project.
6.make sure to delete dist folder in the project and gh-pages branch in the remote repo before you go to the through step 1, 2 and 3.
1.ng build --prod --base-href https://captain-beemo.github.io/angular-deploy-demo/ --deploy-url=https://captain-beemo.github.io/angular-deploy-demo/
2.ngh --dir=dist/angular-deploy-demo/
Deploying an Angular App to Github Pages ← Alligator.io
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the -prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.