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
- Run
cd website. - Run
npm install.
Commands
npm run startstarts the local dev server and usesproxy.conf.json.npm run buildbuilds the site todist/toju-websitewith the configured SSR/prerender setup and copiespublic/web.configto the release root for IIS.npm run watchrebuilds in development mode.npm run testruns the Karma test suite.npm run test:designruns lightweight Node guards for the homepage design direction and IIS SSR release config.npm run serve:ssr:toju-websiteserves 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 soserver/server.mjs,browser/, and rootweb.configstay together. - Keep website code isolated from
toju-app/,electron/, andserver/.