How ak970049/myherokussr works
Project type and purpose
• This is an Angular (v16) Universal application—i.e. a client-side Angular SPA plus a Node/Express server for server-side rendering (SSR).
• The goal is to deliver pre-rendered HTML from the server (for SEO, performance) and then bootstrap a full Angular front end in the browser.
File structure
• Top-level:
• Configuration: .editorconfig, .gitignore, .vscode/, angular.json, tsconfig*.json
• server.ts – Express entrypoint for SSR
• package.json – dependencies and scripts
• src/:
• app/
– app.module.ts (browser NgModule)
– app.module.server.ts (server-side NgModule)
– app-routing.module.ts, app.component.*
– browser-storage.service.ts & browser-storage-server.service.ts (abstracting storage in browser vs server)
• main.ts – browser bootstrap
• main.server.ts – server bootstrap for Angular Universal
• assets/, environments/ (env-specific configs), index.html, styles.scss, web.config
• test/ and tsconfig.for tests – Karma & e2e setup
README
• Confirms Angular CLI usage, dev server, build/test commands
• No SSR details here, but file names imply Angular Universal