Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (17 loc) · 1.16 KB

File metadata and controls

31 lines (17 loc) · 1.16 KB

Angular CSR/SSR SPA

Example Angular SPA using the Bloomreach Experience Angular SDK. This project was generated with Angular CLI.

Install and run

This example is part of a monorepo and other packages will have to be build in order for this example to run. Read more in the root README on how to install, build and run the examples.

Available scripts

In the project directory, you can run:

Development server

Run npm run start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

For Angular Universal application, you can use npm run dev:ssr.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Launch

Run npm run start:ssr to start Angular Universal application.