Personal photography portfolio site: jcantuphotography.com
- Angular-based photography portfolio
- Responsive layouts and image galleries powered by Macy.js
- Angular Material components
- Progressive web app support through Angular Service Worker
- Production build configuration and bundle budgets
- Custom domain support for GitHub Pages deployments
- Angular 21
- Angular Material 21
- Angular CDK
- Macy.js masonry-layout library
- RxJS 7
- TypeScript 5.8+
- Karma and Jasmine for unit tests
- Angular CLI and
angular-cli-ghpagesfor building and deployment
- Node.js 20 (see
.nvmrc) - npm
- Angular CLI
Clone the repository and install the dependencies:
git clone https://github.com/Jac21/PhotoGraphy.git
cd PhotoGraphy
nvm use
npm install
npm install -g @angular/cliIf you do not use nvm, make sure Node.js 20.20.0 is active.
Start the local development server:
npm startOpen http://localhost:4200/. The application reloads automatically when source files change.
| Command | Description |
|---|---|
npm start |
Start the Angular development server |
npm run build |
Create a production build in dist/ |
npm run budget |
Run the production build and bundle budget checks |
npm test |
Run unit tests with Karma |
npm run lint |
Run lint checks |
npm run e2e |
Run the end-to-end test suite |
npm run deploy |
Build and deploy the site to GitHub Pages |
Run the unit test suite with:
npm testThe repository also includes legacy Protractor end-to-end configuration:
npm run e2eThe deploy workflow builds the application with the production base href configured for https://jcantuphotography.com/, then publishes dist/browser with angular-cli-ghpages:
npm run deployDeployment configuration is defined in angular.json, package.json, and src/CNAME.
GitHub Actions uses Node.js 20 to install dependencies and run a production build for pushes to master and feature/*, as well as pull requests targeting master.
src/
βββ app/ Application components and modules
βββ assets/ Images and static assets
βββ environments/ Angular environment configuration
βββ CNAME Custom GitHub Pages domain
βββ manifest.json Progressive web app manifest
βββ sitemap.xml Search engine sitemap
This project is licensed under the MIT License.