Files
Toju/website/README.md
2026-05-25 16:51:44 +02:00

37 lines
1.6 KiB
Markdown

# Website
Angular 19 marketing site for MetoYou / Toju. This package is separate from the product client in `../toju-app/` and uses its own `package.json`.
## Install
1. Run `cd website`.
2. Run `npm install`.
## Commands
- `npm run start` starts the local dev server and uses `proxy.conf.json`.
- `npm run build` builds the site to `dist/toju-website` with the configured SSR/prerender setup and copies `public/web.config` to the release root for IIS.
- `npm run watch` rebuilds in development mode.
- `npm run test` runs the Karma test suite.
- `npm run test:design` runs lightweight Node guards for the homepage design direction and IIS SSR release config.
- `npm run serve:ssr:toju-website` serves the built SSR output.
## Structure
| Path | Description |
| --- | --- |
| `src/app/` | Website pages, sections, and shared UI |
| `src/images/` | Marketing images copied to `/images` during build |
| `public/` | Static public assets |
| `public/web.config` | IIS/iisnode entry point for the Angular SSR server |
| `tools/copy-iis-web-config.mjs` | Post-build step that places `web.config` beside `browser/` and `server/` in the release output |
| `proxy.conf.json` | Local development proxy configuration |
| `angular.json` | Angular build, serve, SSR, prerender, and test targets |
## Notes
- The website is its own Angular workspace and is not installed by the root `npm install`.
- Build output in `dist/toju-website/` is generated.
- IIS deployments publish the full `dist/toju-website/` folder so `server/server.mjs`, `browser/`, and root `web.config` stay together.
- Keep website code isolated from `toju-app/`, `electron/`, and `server/`.