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
-[x] modules import depending on the platform (`MockServerBrowserModule`)
21
21
-[x] execution of queries to api on the server `TransferHttp`
22
22
-[x] work with cookies on the server `UniversalStorage`
23
-
-[x] Uses **[ngx-meta](https://github.com/fulls1z3/ngx-meta) ** for SEO (*title, meta tags, and Open Graph tags for social sharing*).
23
+
-[x] Uses **[ngx-meta](https://github.com/fulls1z3/ngx-meta)** for SEO (*title, meta tags, and Open Graph tags for social sharing*).
24
24
-[x] uses ngx-translate to support internationalization (i18n)
25
25
-[x] uses ORIGIN_URL - for absolute queries
26
-
-[] @ angular / service-worker
26
+
-[] @ angular/service-worker
27
27
-[] Ionic - it is necessary to compile the web version while there are problems [separate branch] (https://github.com/Angular-RU/angular-universal-starter/tree/ionic)
28
28
29
29
## How to start
30
-
-`yarn` or`npm install`
31
-
-`yarn start` or`npm run start` - for client rendering
32
-
-`yarn ssr` or`npm run ssr` - for server-side rendering
33
-
-`yarn build:universal` or`npm run build:universal` - for assembly in release
34
-
-`yarn server` or`npm run server` - to start the server
35
-
-`yarn build:prerender` or`npm run build:prerender` - to generate static by `static.paths.ts`
36
-
- how to run watch: once: `yarn ssr:cw` or`npm run ssr:cw`, once: `yarn ssr:sw` or`npm run ssr:sw`, after each change: `yarn ssr:server`or`npm run ssr:server`
30
+
-`yarn` or`npm install`
31
+
-`yarn start` or`npm run start` - for client rendering
32
+
-`yarn ssr` or`npm run ssr` - for server-side rendering
33
+
-`yarn build:universal` or`npm run build:universal` - for assembly in release
34
+
-`yarn server` or`npm run server` - to start the server
35
+
-`yarn build:prerender` or`npm run build:prerender` - to generate static by `static.paths.ts`
36
+
- how to run watch: once: `yarn ssr:cw` or`npm run ssr:cw`, once: `yarn ssr:sw` or`npm run ssr:sw`, after each change: `yarn ssr:server` or `npm run ssr:server`
37
37
38
38
## How to use this repository in your project:
39
39
To transfer ssr to your repository, you need the following files:
40
-
- .angular-cli.json
41
-
- server.ts
42
-
- prerender.ts
43
-
- webpack.config.js
44
-
- main.server.ts
45
-
- main.browser.ts
46
-
- modules / *
47
-
- forStorage / *
48
-
- environments / *
49
-
- app.browser.module.ts
50
-
- app.server.module.ts
40
+
- .angular-cli.json
41
+
- server.ts
42
+
- prerender.ts
43
+
- webpack.config.js
44
+
- main.server.ts
45
+
- main.browser.ts
46
+
- modules/*
47
+
- forStorage/*
48
+
- environments/*
49
+
- app.browser.module.ts
50
+
- app.server.module.ts
51
51
52
52
## References
53
53
Official example in English: https://github.com/angular/universal-starter
54
54
Modules used for universal:
55
-
-https://github.com/angular/universal/tree/master/modules/aspnetcore-engine -web for .net core
55
+
-https://github.com/angular/universal/tree/master/modules/aspnetcore-engine -web for .net core
56
56
-https://github.com/angular/universal/tree/master/modules/common - TransferHttpCacheModule, at the moment I do not use it if you know where and why it should be installed - write to me or in issue, pull request
57
57
-https://github.com/angular/universal/tree/master/modules/express-engine - Express Engine to run the rendering in node, in our application is used. Please note that the current version is not lower than 5.0.0-beta.5
58
58
-https://github.com/angular/universal/tree/master/modules/hapi-engine - Hapi Engine is an alternative engine for rendering. In the example is not used, in principle in the connection scheme does not differ from express-engine
0 commit comments