@@ -3,25 +3,34 @@ The following are the instructions to deploy the angular-fullstack app to Google
3
3
4
4
# Prequsites
5
5
## 1. Google Cloud SDK
6
- Download and install [Google Cloud SDK](https://cloud.google.com/sdk/)
6
+ Download and install [ Google Cloud SDK] ( https://cloud.google.com/sdk/ )
7
7
## 2. Create GCP Project
8
8
``` bash
9
- gcloud projects create PROJECT_ID
10
- ```
9
+ gcloud projects create [PROJECT_ID]
10
+ ```
11
+ ``` [PROJECT_ID] ``` ID for the project you want to create.
12
+
11
13
## 3. Enable Billing
14
+ You need to enable billing for your project before you begin using App Engine
12
15
``` bash
13
16
gcloud alpha billing projects link my-project \
14
17
--billing-account 0X0X0X-0X0X0X-0X0X0X
15
18
```
19
+ [ gcloud alpha billing projects link] ( https://cloud.google.com/sdk/gcloud/reference/alpha/billing/projects/link )
20
+
16
21
## 4. Create a MongoDB database
17
- Create a MongoDB instance and obtain the uri and credentials
22
+ Create a MongoDB instance and obtain the uri and credentials. There are multiple options for creating a new MongoDB database.
23
+ - Create a Google Compute Engine virtual machine with [ MongoDB pre-installed] ( https://cloud.google.com/launcher/?q=mongodb ) .
24
+ - Create a MongoDB instance with [ MongoDB Atlas on GCP] ( https://www.mongodb.com/cloud/atlas/mongodb-google-cloud ) .
25
+ - Use [ mLab] ( https://mlab.com/google ) to create a free MongoDB deployment on Google Cloud Platform.
26
+
18
27
19
28
# Deployment Setup
20
29
## 1. Set Node / NPM versions
21
30
GCloud App Engine supports only the newest version of Node.js 8
22
31
``` javascript
23
32
" engines" : {
24
- " node" : " =8.0" ,
33
+ " node" : " > =8.0" ,
25
34
" npm" : " ^5.1.1"
26
35
},
27
36
```
@@ -32,7 +41,7 @@ The following are the instructions to deploy the angular-fullstack app to Google
32
41
33
42
2.1 create a 'app.yaml' file with the following contents
34
43
35
- ``` javascript
44
+ ``` yaml
36
45
37
46
env : standard
38
47
@@ -52,7 +61,7 @@ The following are the instructions to deploy the angular-fullstack app to Google
52
61
```
53
62
## 2. Copy app.yaml to dist
54
63
``` bash
55
- copy app.yaml dist
64
+ cp app.yaml dist
56
65
```
57
66
## 3. Change to build directory
58
67
``` bash
0 commit comments