puddlejumper26 / blogs

Personal Tech Blogs
4 stars 1 forks source link

How to deploy Angular App on GitHub #150

Open puddlejumper26 opened 3 years ago

puddlejumper26 commented 3 years ago

There are two parts in this issue.

Part I - Upload code to GitHub

git init
git add .
git commit -m "first commit"
git remote add origin https://github.com/puddlejumper26/<repositoryName>.git
git push -u origin master

Part II - Build Angular App

npm i angular-cli-ghpages
ng build --prod --base-href "https://puddlejumper26.github.io/<repositoryName>"
ngh --dir=dist/<repositoryName>
� Uploading via git, please wait...
� Successfully published via angular-cli-ghpages! Have a nice day!

Part III - Problems could happen

Reference

https://www.youtube.com/watch?v=8Mle8owZ3_4