Project Web Stack
- Framework: Angular (CLI 17) with SSR (Angular Universal) and Express server (
server.ts).
- Language/Runtime: TypeScript (~5.2), Node.js >= 20.
- Build/Bundle: Angular CLI (
@angular-devkit/build-angular). Output in dist/kantoweb. Main config in angular.json.
- Entry points:
src/main.ts (browser), src/main.server.ts (server), server.ts (SSR/Express).
- Styles: Global SCSS in
src/styles.scss. Uses Angular Material (indigo-pink theme), Bootstrap and Swiper CSS.
- Routing: Angular Router (
src/app/app-routing.module.ts).
- Lint/Format: ESLint (angular-eslint), Prettier, Stylelint. Pre-commit hooks via
husky/lint-staged.
- Tests: Unit (Karma + Jasmine). E2E (Protractor).
- CI/CD & Containers:
bitbucket-pipelines.yml, Dockerfile*, heroku.yml.
- i18n: JSON files in
src/assets/i18n.
Useful commands (npm scripts)
npm start: development (SPA) with ng serve.
npm run dev: local SSR server (Angular Universal).
npm run build: app build (Universal) and copy certificates.
Relevant structure
- Source code:
src/ (modules in src/app/, assets in src/assets/).
- Configuration:
angular.json, tsconfig*.json, .eslintrc.json, .stylelintrc.json.
- Build output:
dist/kantoweb/ (includes browser/ and server/).
Dependencies (runtime only)