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
{{ message }}
This repository was archived by the owner on Apr 15, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: guides/angular.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Angular
2
2
3
-
This guide shows you how to deploy an Angular application on the Moovweb XDN:
3
+
This guide shows you how to deploy an Angular application on {{ PRODUCT_NAME }}:
4
4
5
5
## Example SSR Site
6
6
@@ -11,11 +11,11 @@ This Angular example app uses server-side rendering and prefetching to provide l
11
11
12
12
## Install Node.js and npm
13
13
14
-
**XDN only supports Node.js version 12.x**
14
+
**{{ PRODUCT_NAME }} only supports Node.js version 12.x**
15
15
16
16
If you do not have Node.js installed on your system, download and install it from the official [Node.js v12.x downloads](https://nodejs.org/dist/latest-v12.x/) page. Select the download that matches your operating system and run the installer. Note that the installer for Node.js will also install npm.
17
17
18
-
_Note that while you can use any version of Node.js >= 12 locally, your app will run in Node 12 when deployed to the XDN cloud. Therefore we highly suggest using Node 12 for all development._
18
+
_Note that while you can use any version of Node.js >= 12 locally, your app will run in Node 12 when deployed to the {{ PRODUCT_NAME }} cloud. Therefore we highly suggest using Node 12 for all development._
19
19
20
20
## Getting Started
21
21
@@ -32,7 +32,7 @@ You should now have a working starter app. Run `ng serve` to see the application
32
32
33
33
#### 2. Add SSR
34
34
35
-
To deploy your Angular application on the Moovweb XDN it needs to support server-side rendering (SSR). To add SSR support, run:
35
+
To deploy your Angular application on {{ PRODUCT_NAME }} it needs to support server-side rendering (SSR). To add SSR support, run:
36
36
37
37
```bash
38
38
ng add @nguniversal/express-engine
@@ -49,15 +49,15 @@ The previous command created:
49
49
50
50
You can now run `npm run build:ssr && npm run serve:ssr` to access your server-side rendered app at `localhost:4000`.
51
51
52
-
To prepare your Angular application for deployment on the Moovweb XDN:
52
+
To prepare your Angular application for deployment on {{ PRODUCT_NAME }}:
53
53
54
-
#### 1. Install the XDN CLI globally:
54
+
#### 1. Install {{ PRODUCT_NAME }} CLI globally:
55
55
56
56
```bash
57
57
npm install -g @xdn/cli
58
58
```
59
59
60
-
#### 2. Run the following in the root folder of your project. This will configure your project for the XDN.
60
+
#### 2. Run the following in the root folder of your project. This will configure your project for {{ PRODUCT_NAME }}.
61
61
62
62
```bash
63
63
xdn init
@@ -68,7 +68,7 @@ This will automatically add all of the required dependencies and files to your p
68
68
- The `@xdn/core` package
69
69
- The `@xdn/angular` package
70
70
- The `@xdn/cli` package
71
-
-`xdn.config.js`- Contains various configuration options for the XDN.
71
+
-`xdn.config.js`- Contains various configuration options for {{ PRODUCT_NAME }}.
72
72
-`routes.js` - A default routes file that sends all requests to the Angular Universal server. Update this file to add caching or proxy some URLs to a different origin.
73
73
74
74
#### 3. Use the right angular project
@@ -137,7 +137,7 @@ ANGULAR_PROJECT=my-project xdn run
137
137
138
138
## Deploying
139
139
140
-
Deploying requires an account on the Moovweb XDN. [Sign up here for free.](https://moovweb.app/signup) Once you have an account, you can deploy to the Moovweb XDN by running the following in the root folder of your project:
140
+
Deploying requires an account on {{ PRODUCT_NAME }}. [Sign up here for free.](https://moovweb.app/signup) Once you have an account, you can deploy to {{ PRODUCT_NAME }} by running the following in the root folder of your project:
0 commit comments