portfolio

Portfolio App (Angular, static)

Local development

npm install
npm start

Production build

npm run build

Static output (deploy this folder):

GitHub Pages (repository deployment)

GitHub Pages serves repository sites under a sub-path:

Router compatibility

This repo includes a ghpages build configuration that:

Exact build command

npm run build:ghpages

Which runs:

ng build --configuration ghpages

This repo includes GitHub Pages workflow.

In GitHub:

Push to main (or portfoliowebsite) and the workflow will build and deploy.

Note: Angular (SSR-capable) builds emit dist/portfolio-app/browser/index.csr.html; the workflow copies it to index.html for GitHub Pages.

Optional: angular-cli-ghpages

If you prefer a manual publish flow:

npm run build:ghpages
npx angular-cli-ghpages --dir dist/portfolio-app/browser

If your repo name is not portfolio-app

Update the GitHub Pages path in angular.json:

Set both to /<your-repo-name>/.