Source code for my personal site
- Clone the repo:
git clone https://github.com/naschorr/naschorr.github.io cdinto the root directory- Install the dependencies:
npm install - Run
npm startorng serveto build and host the site locally. To expose the site to your local network, useng serve --host 0.0.0.0.- Alternatively, feel free to use the
ng servelaunch option in VS Code.
- Alternatively, feel free to use the
- Connect to the page at localhost:4200, or <host's IP address>:4200 if you're accessing the site from a phone or something else.
Just merge the changes into the main branch. The .github/workflows/angular_build_deploy.yml action will handle building and deploying the Angular app.
cdinto the root directory- Make sure the Angular CLI GH Pages package is installed:
ng add angular-cli-ghpages ng deploy
This builds the app and pushes it to the gh-pages branch on GitHub. GitHub Pages is already configured to serve from that branch, and has it's custom domain set up to serve from nickschorr.com as well.