cc-core-cli 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -53
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,32 +1,5 @@
|
|
|
1
1
|
# Commerce Connect CLI
|
|
2
2
|
|
|
3
|
-
**Create SSH key**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
ssh-keygen -t rsa -b 4096
|
|
7
|
-
|
|
8
|
-
It will ask you the file name that you want to save
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Enter a file in which to save the key (/Users/YOU/.ssh/id_ALGORITHM): [Press enter]
|
|
12
|
-
Please fill in with
|
|
13
|
-
|
|
14
|
-
~/.ssh/cconnect
|
|
15
|
-
Then should run command. It will copy your public key and please send it to your team lead.
|
|
16
|
-
|
|
17
|
-
cat ~/.ssh/cconnect.pub | pbcopy
|
|
18
|
-
|
|
19
|
-
**Config SSH to use your key**
|
|
20
|
-
open ssh config with this command
|
|
21
|
-
|
|
22
|
-
sudo vim ~/.ssh/config
|
|
23
|
-
|
|
24
|
-
Add the below code and save the file
|
|
25
|
-
|
|
26
|
-
Host cconnect
|
|
27
|
-
Hostname bitbucket.com
|
|
28
|
-
IdentityFile ~/.ssh/cconnect
|
|
29
|
-
|
|
30
3
|
**Install Mongo & Redis**
|
|
31
4
|
|
|
32
5
|
Please copy docker-compose.yml for start mongo database
|
|
@@ -55,53 +28,48 @@ Please copy docker-compose.yml for start redis
|
|
|
55
28
|
|
|
56
29
|
**Install CLI as a global package**
|
|
57
30
|
|
|
58
|
-
npm install -g
|
|
31
|
+
npm install -g cc-core-cli
|
|
59
32
|
|
|
60
|
-
**Create Commerce Connect
|
|
33
|
+
**Create Commerce Connect CORE**
|
|
61
34
|
|
|
62
35
|
cc-cli init core <PATH>
|
|
63
36
|
|
|
64
|
-
**Example .env file for run on dev mode**
|
|
37
|
+
**Example .env file for run CORE on dev mode**
|
|
65
38
|
|
|
66
39
|
NODE_ENV=dev
|
|
67
40
|
PORT=3000
|
|
68
41
|
LOOP_BACK_IP=0.0.0.0
|
|
42
|
+
MONGODB_URI=mongodb://root:axSdEpGZYNfdsX@{{YOUR DOCKER GATEWAY IP}}:27017/cc_db?authSource=admin
|
|
69
43
|
SESSION_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
|
|
70
44
|
CACHE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
|
|
71
|
-
|
|
72
|
-
ENABLE_SCHEDULE_ACTION=true
|
|
73
|
-
SERVE_STATIC=true
|
|
74
|
-
SERVE_STATIC_PATH=media
|
|
75
|
-
SINGLE_QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
|
|
76
|
-
QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/1
|
|
45
|
+
QUEUE_REDIS_URL=redis://{{YOUR DOCKER GATEWAY IP}}:6379/2
|
|
77
46
|
QUEUE_CONCURRENCY=1
|
|
78
47
|
MAX_WORKER=1
|
|
79
|
-
SWAGGER_ENABLE=true
|
|
80
48
|
CUSTOM_MODULES=
|
|
81
49
|
DEFAULT_API_KEY=997829b-1144-4049-aff9-b2b9394a394e
|
|
82
50
|
DEFAULT_SECRET_KEY=5ae1ave1j8otoxxvrv5gn2o9mtquk3we14hjxjha
|
|
83
51
|
|
|
84
|
-
**Create Commerce Connect
|
|
52
|
+
**Create Commerce Connect ADMIN UI**
|
|
85
53
|
|
|
86
54
|
cc-cli init admin <PATH>
|
|
87
55
|
|
|
88
|
-
**Example .env file for run on dev mode**
|
|
56
|
+
**Example .env.develop file for run ADMIN UI on dev mode**
|
|
89
57
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
58
|
+
NODE_ENV=develop
|
|
59
|
+
PORT=4000
|
|
60
|
+
COOKIE_SECURE=false
|
|
61
|
+
COOKIE_HTTP_ONLY=false
|
|
62
|
+
COOKIE_SAME_SITE=
|
|
63
|
+
SYSTEM_APP_KEY=997829b-1144-4049-aff9-b2b9394a394e
|
|
64
|
+
SYSTEM_SECRET_KEY=5ae1ave1j8otoxxvrv5gn2o9mtquk3we14hjxjha
|
|
65
|
+
API_GATEWAY=http://127.0.0.1:3000/api/v1
|
|
66
|
+
API_GATEWAY_MEDIA=http://127.0.0.1:3000
|
|
67
|
+
GOOGLE_MAP_KEY=
|
|
100
68
|
|
|
101
|
-
**
|
|
69
|
+
**Create Commerce Connect MODULE**
|
|
102
70
|
|
|
103
|
-
cc-cli
|
|
71
|
+
cc-cli init module <PATH>
|
|
104
72
|
|
|
105
|
-
**
|
|
73
|
+
**Upgrade package**
|
|
106
74
|
|
|
107
|
-
cc-cli
|
|
75
|
+
cc-cli upgrade
|