You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A minimal Angular & [**Nest**](https://github.com/nestjs/nest) starter for Universal using the [Angular CLI](https://github.com/angular/angular-cli). If you're looking for the Angular Universal repo go to [angular/universal](https://github.com/angular/universal).
3
+
A minimal [**Nest**](https://github.com/nestjs/nest) and Angular starter for Universal using the
4
+
[Angular CLI](https://github.com/angular/angular-cli). If you're looking for the Angular Universal repo go to
This demo is built following the [Angular-CLI Wiki guide](https://github.com/angular/angular-cli/wiki/stories-universal-rendering)
8
10
9
-
We're utilizing packages from the [Angular Universal @nguniversal](https://github.com/angular/universal) repo, such as [ng-module-map-ngfactory-loader](https://github.com/angular/universal/modules/module-map-ngfactory-loader) to enable Lazy Loading.
11
+
We're utilizing packages from the [Angular Universal @nguniversal](https://github.com/angular/universal) repo,
12
+
such as [ng-module-map-ngfactory-loader](https://github.com/angular/universal/modules/module-map-ngfactory-loader)
13
+
to enable Lazy Loading.
10
14
11
15
---
12
16
@@ -24,20 +28,21 @@ This repo demonstrates the use of 2 different forms of Server Side Rendering.
24
28
---
25
29
26
30
### Installation
27
-
*`npm install` or `yarn`
31
+
*`npm i`
28
32
29
33
### Development (Client-side only rendering)
30
-
*run `npm run start` which will start`ng serve`
34
+
*`npm start` which will run`ng serve`.
31
35
32
36
### Production (also for testing SSR/Pre-rendering locally)
33
-
**`npm run build:ssr && npm run serve:ssr`** - Compiles your application and spins up a Node Express to serve your Universal application on `http://localhost:4000`.
34
-
35
-
**`npm run build:prerender && npm run serve:prerender`** - Compiles your application and prerenders your applications files, spinning up a demo http-server so you can view it on `http://localhost:8080`
36
-
**Note**: To deploy your static site to a static hosting platform you will have to deploy the `dist/browser` folder, rather than the usual `dist`
37
-
38
-
39
-
## Universal "Gotchas"
40
-
Moved to [/angular/universal/blob/master/docs/gotchas.md](https://github.com/angular/universal/blob/master/docs/gotchas.md)
37
+
*`npm run build:ssr && npm run serve:ssr`
38
+
- Compiles your application and spins up a Node Express to serve
39
+
your Universal application on `http://localhost:4000`.
40
+
41
+
*`npm run build:prerender && npm run serve:prerender`
42
+
- Compiles your application and prerenders your
43
+
applications files, spinning up a demo http-server so you can view it on `http://localhost:8080`
44
+
-**Note**: To deploy your static site to a static hosting platform you will have to deploy the `dist/browser`
0 commit comments