-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
82 lines (54 loc) · 3.08 KB
/
README
File metadata and controls
82 lines (54 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
http://localhost:8080/create?email=john@gmail.com&name=john
http://localhost:8080/create?email=john@gmail.com&name=john : create a new user with an auto-generated id and email and name as passed values.
http://localhost:8080/delete?id=1: delete the user with the passed id.
http://localhost:8080/get-by-email?email=jane@gmail.com: retrieve the id for the user with the passed email address.
http://localhost:8080/update?id=1&email=jane@gmail.com&name=jane: update the email and the name for the user indentified by the passed id.
http://localhost:8080/services/users/getAllUsers
http://localhost:8080/services/users/1
https://node-141412.appspot.com/
https://node-141412.appspot.com/create?email=john@gmail.com&name=john
https://node-141412.appspot.com/health
http://node-141412.appspot.com/create?email=jane@gmail.com&name=jane : create a new user with an auto-generated id and email and name as passed values.
http://node-141412.appspot.com/delete?id=1: delete the user with the passed id.
http://node-141412.appspot.com/get-by-email?email=jane@gmail.com: retrieve the id for the user with the passed email address.
http://node-141412.appspot.com/update?id=1&email=jane@gmail.com&name=jane: update the email and the name for the user indentified by the passed id.
http://node-141412.appspot.com/services/users/getAllUsers
http://node-141412.appspot.com/services/users/1
http://node.theoptionslab.net/services/users/getAllUsers
http://node.theoptionslab.net/services/users/1
http://app.theoptionslab.net/services/users/getAllUsers
http://app.theoptionslab.net/services/users/1
This shows how to deploy it to Google App Engine Free/Google Compute Engine Flex Environment
https://github.com/GoogleCloudPlatform/getting-started-java/tree/master/helloworld-springboot
1. Just Open a new Google Cloud SDK Shell,
2. enter gcloug init
3. select 1
To create a MySQL data store:
https://console.cloud.google.com/getting-started?project=node-141412
https://cloud.google.com/appengine/docs/flexible/java/using-cloud-sql
gcloud beta sql users set-password root % --instance node-141412:us-east1:dispatch --password Ilove$cancun1
Open a Cloud Shell
Step 1: D:\Tools>gcloud config set project node-141412
Step 2: D:\Tools>gcloud sql instances describe dispatch
Point DB to Google CLoud SQL
Open a Google CLoud SDK Shell ( GCSS )
Run mvn spring-boot:run to deploy and test it locally
Run mvn appengine:deploy to deploy and test it in GAE.
Remember Enable the API for instance
To debug any issue:
1. Restart the instance and watch log,
2. Search term "Caused by" or ""
gcloud sql instances describe node-141412:us-east1:dispatch
gcloud beta sql users create [USER_NAME] [HOST] \
--instance=[INSTANCE_NAME] --password=[PASSWORD]
Create a database on your Cloud SQL instance named sqldemo.
gcloud beta sql databases create sqldemo --instance=[INSTANCE_NAME]
git init
git add .
git commit -m "initial commit"
git remote add azure https://theoptionslabftp@optionslab.scm.azurewebsites.net:443/optionslab.git
git push azure master
made more changes, then repeat.
git add .
git commit -m "initial commit"
git push azure master