@@ -40,18 +40,14 @@ The following parameters can be set in config files or in env variables:
40
40
- follow (https://neo4j.com/download-thanks-desktop/?edition=desktop&flavour=winstall64&release=1.1.13&offline=true ) to add graph database
41
41
- configure graph database connection details in config file
42
42
43
-
44
43
## Local Deployment
45
44
46
45
- Install dependencies ` npm install `
47
46
- Run lint ` npm run lint `
48
47
- Run lint fix ` npm run lint:fix `
49
- - Clear and init db ` npm run init-db `
50
- - Add db indices ` npm run create-index `
51
- - Insert test data ` npm run test-data `
52
48
- Start app ` npm start `
53
- - App is running at ` http://localhost:3000 `
54
-
49
+ - App will be running at ` http://localhost:3000 `
50
+ - Application can be run in development mode using the command ` npm run dev `
55
51
56
52
## Heroku deployment
57
53
- git init
@@ -63,33 +59,12 @@ The following parameters can be set in config files or in env variables:
63
59
- to set some environment variables in heroku, run command like:
64
60
` heroku config:set LOG_LEVEL=info `
65
61
- git push heroku master // push code to Heroku
66
- - to initialize db, run ` heroku run npm run init-db `
67
- - to create db indices, run ` heroku run npm run create-index `
68
- - to insert test data, run ` heroku run npm run test-data `
69
-
70
-
71
- I deployed the code to:
72
- https://thawing-savannah-55254.herokuapp.com
73
-
74
-
75
62
76
63
## Graph Database Structure
77
64
78
- The graph database consists of 3 node types: SecurityGroup, Group and User, and one relation type: GroupContains.
65
+ The graph database consists of 3 node types: Group and User, and one relation type: GroupContains.
79
66
The GroupContains relation links from a group to a child group or user.
80
67
81
- ### SecurityGroup node
82
-
83
- The security group node contains these fields:
84
-
85
- - id: the group UUID corresponding to the security group
86
- - name: the security group name, should be unique (usually the same as the group)
87
- - createdAt: the created at date string
88
- - createdBy: the created by user id
89
- - updatedAt: the updated at date string
90
- - updatedBy: the updated by user id
91
-
92
-
93
68
### Group node
94
69
95
70
The group node contains these fields:
@@ -113,18 +88,11 @@ The user node contains these fields:
113
88
- id: the user UUID
114
89
- handle: the user handle, should be unique
115
90
116
-
117
91
### GroupContains relation
118
92
119
93
The GroupContains relation contains these fields:
120
94
121
95
- id: the relationship UUID
122
96
- type: the relationship type, 'group' or 'user'
123
97
- createdAt: the created at date string
124
- - createdBy: the created by user id
125
-
126
- ## Notes
127
-
128
- In the app-constants.js Topics field, the used topics are using a test topic,
129
- the suggested ones are commented out, because these topics are not created in TC dev Kafka yet.
130
-
98
+ - createdBy: the created by user id
0 commit comments