Portfolio using Angular frontend framework and Materialize
- Create new empty repository
- Create production build with
ng build --prod
- Check index.html and adjust base href to be like this:
<base href="/project-name/">
- Navigate to dist/project-name. Make a copy of index.html and rename it to 404.html. If you have a router in your Angular application, it not be available on GitHub pages and you'll get a 404 page. This is solved by telling the server what needs to be done when a page is not found.
- git init to initialize git repo
- git remote add origin
- push changes to repository
- Go to angular.json and change the outputPath to "docs"
- ng build --output-path docs --base-href angular-portfolio-v10