-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsoftware_architecture.dsl
More file actions
375 lines (303 loc) · 16.5 KB
/
software_architecture.dsl
File metadata and controls
375 lines (303 loc) · 16.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
workspace "BerrySend" "App for planning export routes of berries" {
!identifiers hierarchical
//
// CONTEXT DIAGRAM
//
model {
//
// TARGET SEGMENTS
//
exporter = person "Exporter" "User that will use the BerrySend app to plan export routes"
//
// SOFTWARE
//
berrySend = softwareSystem "BerrySend" "Service to plan and optimize export routes" "App" {
//
// CONTAINER DIAGRAM
//
webApplication = container "Web Application" "Delivers the static content and the BerrySend single page application" "" "" {
}
singlePageApplication = container "Client-Side Application" "Provides all of the BerrySend functionality to the user browser." "" "Web" {
technology "JavaScript, Vue.JS and TailwindCSS"
//
// COMPONENTS DIAGRAM - Client-Side App
//
appComponent = component "AppComponent" "Displays and contains the main UI components."
//
// BOUNDED CONTEXT AUTHENTICATION
//
// PAGES
loginPage = component "LoginPage" "Page for login activities." {
technology "Vue.js Component"
}
registerPage = component "RegisterPage" "Page for registratation activities." {
technology "Vue.js Component"
}
// COMPONENTS
loginFormComponent = component "LoginFormComponent" "Handles user authentication." {
technology "Vue.js Component"
}
registerFormComponent = component "RegisterFormComponent" "User registration form." {
technology "Vue.js Component"
}
authLayout = component "AuthLayout" "Layout wrapper for authentication pages (login and register)" {
technology "Vue.js Component"
}
// SERVICES
authService = component "AuthService" "Manages authentication logic and make requests to the API." {
technology "JavaScript Component"
}
userService = component "UserService" "Manages user logic and make requests to the API." {
technology "JavaScript Component"
}
//
// BOUNDED CONTEXT PORT MANAGEMENT
//
// PAGES
portPage = component "PortPage" "Page for obtaining details of current ports." {
technology "Vue.js Component"
}
// COMPONENTS
portCardComponent = component "PortCardComponent" "Sets the info of a port in a single organized card." {
technology "Vue.js Component"
}
// SERVICES
portService = component "PortService" "Manages port logic and make requests to the API." {
technology "JavaScript Component"
}
//
// BOUNDED CONTEXT ROUTE OPTIMIZATION
//
// PAGES
optimizationPage = component "OptimizationPage" "Central page for optimizing routes by configuring parameters" {
technology "Vue.js Component"
}
// COMPONENTS
algorithmCardComponent = component "AlgorithmCardComponent" "Card for describing details of used algorithms in the optimization" {
technology "Vue.js Component"
}
// SERVICES
optimizationService = component "OptimizationService" "Manages optimization logic and make requests to the API for usage of algorithms" {
technology "JavaScript Component"
}
//
// BOUNDED CONTEXT EXPORT MANAGEMENT
//
// PAGES
visualizationPage = component "VisualizationPage" "Page for see the map with the optimized routes and info about the planned export" {
technology "Vue.js Component"
}
// COMPONENTS
networkGraphComponent = component "NetworkGraphComponent" "Displays an interactive network graph with ports, connections and routes" {
technology "Vue.js Component"
}
// SERVICES
graphService = component "GraphService" "Manages graph generation logic from the API" {
technology "JavaScript Component"
}
//
// BOUNDED CONTEXT PROFILE MANAGEMENT
//
// PAGES
profilePage = component "ProfileComponent" "Displays user profile data." {
technology "Vue.js Component"
}
editProfileComponent = component "EditProfileComponent" "Edits user profile details." {
technology "Vue.js Component"
}
// SERVICES
profileService = component "ProfileService" "Fetches/updates profile data." {
technology "JavaScript Component"
}
//
// ADITIONAL CONFIG
//
languageSwitcherComponent = component "LanguageSwitcherComponent" "Allows user to switch app language." {
technology "Vue.js Component"
}
navComponent = component "NavComponent" "Component for navigation through the app" {
technology "Vue.js Component"
}
}
apiPlatform = container "Server-Side Application" "Provides BerrySend functionality via JSON/HTTP through the API." "" "API" {
technology "Python and FastAPI"
//
// COMPONENTS DIAGRAM - API Platform
//
portManagement = component "Port Management Bounded Context" "Manages the creation and updating of ports and its connections from online CSV files" "" "Component" {
technology "Python Component"
}
routeOptimization = component "Route Optimization Bounded Context" "Manages and uses complex algorithms to optimize various factors about routes for exports" "" "Component" {
technology "Python Component"
}
exportManagement = component "Export Management Bounded Context" "Manages the planning of blue berry exports" "" "Component" {
technology "Python Component"
}
authentication = component "IAM Bounded Context" "Manages authentication, security and access control" "" "Component" {
technology "Python Component"
}
profileManagement = component "Profile Management Bounded Context" "Manages user profile information" "" "Component" {
technology "Python Component"
}
sharedKernel = component "Shared Kernel" "Provide shared utilities and abstractions" "" "Component" {
technology "Python Component"
}
}
db = container "Relational Database" "Stores users information, planned routes and exports. " "" "BD" {
technology "MySQL"
}
}
//
// EXTERNAL SYSTEMS
//
googleMaps = softwareSystem "Google Maps" "Service for using real-time maps" "ExternalSoftwareSystem"
// -----------------------------------------------------------------------------------------------------------
//
// RELATIONS
//
//
// CONTEXT DIAGRAM
//
exporter -> berrySend.webApplication "Uses"
berrySend -> googleMaps "Uses to generate maps of routes"
//
// CONTAINER DIAGRAM
//
berrySend.webApplication -> berrySend.singlePageApplication "Delivers"
berrySend.singlePageApplication -> googleMaps "Uses to generate maps of routes"
berrySend.singlePageApplication -> berrySend.apiPlatform "Make requests via [HTTP/JSON]"
berrySend.apiPlatform -> berrySend.db "Reads from and writes to"
//
// COMPONENT DIAGRAM
//
//
// Single-Page App
//
berrySend.webApplication -> berrySend.singlePageApplication.appComponent "Delivers"
berrySend.singlePageApplication.appComponent -> berrySend.singlePageApplication.loginPage "Sends to"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.loginFormComponent "Uses"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.registerPage "If not has an account, sends to"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.navComponent "If correctly authenticated, sends to"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.authService "Uses"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.userService "Uses"
berrySend.singlePageApplication.loginPage -> berrySend.singlePageApplication.authLayout "Uses"
berrySend.singlePageApplication.registerPage -> berrySend.singlePageApplication.registerFormComponent "Uses"
berrySend.singlePageApplication.registerPage -> berrySend.singlePageApplication.authService "Uses"
berrySend.singlePageApplication.registerPage -> berrySend.singlePageApplication.authLayout "Uses"
berrySend.singlePageApplication.registerPage -> berrySend.singlePageApplication.navComponent "If correctly created an account, sends to"
berrySend.singlePageApplication.navComponent -> berrySend.singlePageApplication.languageSwitcherComponent "Uses"
berrySend.singlePageApplication.navComponent -> berrySend.singlePageApplication.visualizationPage "Sends to"
berrySend.singlePageApplication.navComponent -> berrySend.singlePageApplication.optimizationPage "Sends to"
berrySend.singlePageApplication.navComponent -> berrySend.singlePageApplication.portPage "Sends to"
berrySend.singlePageApplication.navComponent -> berrySend.singlePageApplication.profilePage "Sends to"
berrySend.singlePageApplication.visualizationPage -> berrySend.singlePageApplication.networkGraphComponent "Uses"
berrySend.singlePageApplication.visualizationPage -> berrySend.singlePageApplication.graphService "Uses"
berrySend.singlePageApplication.visualizationPage -> googleMaps "Uses to generate maps of routes"
berrySend.singlePageApplication.optimizationPage -> berrySend.singlePageApplication.algorithmCardComponent "Uses"
berrySend.singlePageApplication.optimizationPage -> berrySend.singlePageApplication.optimizationService "Uses"
berrySend.singlePageApplication.portPage -> berrySend.singlePageApplication.portCardComponent "Uses"
berrySend.singlePageApplication.portPage -> berrySend.singlePageApplication.portService "Uses"
berrySend.singlePageApplication.profilePage -> berrySend.singlePageApplication.profileService "Uses"
berrySend.singlePageApplication.profilePage -> berrySend.singlePageApplication.editProfileComponent "Sends to"
berrySend.singlePageApplication.editProfileComponent -> berrySend.singlePageApplication.profileService "Uses"
berrySend.singlePageApplication.authService -> berrySend.apiPlatform "[Requests authentication to use the application]"
berrySend.singlePageApplication.userService -> berrySend.apiPlatform "[Requests user information]"
berrySend.singlePageApplication.profileService -> berrySend.apiPlatform "[Requests user's profile information]"
berrySend.singlePageApplication.portService -> berrySend.apiPlatform "[Requests information about ports and connections]"
berrySend.singlePageApplication.optimizationService -> berrySend.apiPlatform "[Requests use of algorithms for optimization]"
berrySend.singlePageApplication.graphService -> berrySend.apiPlatform "[Requests generation of graphs]"
//
// API Platform
//
berrySend.singlePageApplication -> berrySend.apiPlatform.routeOptimization "[Requests optimized routes]"
berrySend.singlePageApplication -> berrySend.apiPlatform.portManagement "[Requests details of ports and its connections]"
berrySend.singlePageApplication -> berrySend.apiPlatform.exportManagement "[Requests the planning and optimization of blue berries exports]"
berrySend.singlePageApplication -> berrySend.apiPlatform.authentication "[Requests authentication to use the application]"
berrySend.singlePageApplication -> berrySend.apiPlatform.profileManagement "[Requests creation and information about user profiles]"
berrySend.apiPlatform.routeOptimization -> berrySend.apiPlatform.sharedKernel "Implements / extends base repository class"
berrySend.apiPlatform.portManagement -> berrySend.apiPlatform.sharedKernel "Implements / extends base repository class"
berrySend.apiPlatform.exportManagement -> berrySend.apiPlatform.sharedKernel "Implements / extends base repository class"
berrySend.apiPlatform.authentication -> berrySend.apiPlatform.sharedKernel "Implements / extends base repository class"
berrySend.apiPlatform.profileManagement -> berrySend.apiPlatform.sharedKernel "Implements / extends base repository class"
berrySend.apiPlatform.routeOptimization -> berrySend.db "Reads from and writes to"
berrySend.apiPlatform.portManagement -> berrySend.db "Reads from and writes to"
berrySend.apiPlatform.exportManagement -> berrySend.db "Reads from and writes to"
berrySend.apiPlatform.authentication -> berrySend.db "Reads from and writes to"
berrySend.apiPlatform.profileManagement -> berrySend.db "Reads from and writes to"
berrySend.apiPlatform.sharedKernel -> berrySend.db "Set ORM Mapping Rules, manages database context"
berrySend.apiPlatform.routeOptimization -> berrySend.apiPlatform.authentication "Requests authentication for usage"
berrySend.apiPlatform.portManagement -> berrySend.apiPlatform.authentication "Requests authentication for usage"
berrySend.apiPlatform.exportManagement -> berrySend.apiPlatform.authentication "Requests authentication for usage"
berrySend.apiPlatform.profileManagement -> berrySend.apiPlatform.authentication "Requests authentication for usage"
berrySend.apiPlatform.routeOptimization -> berrySend.apiPlatform.portManagement "Obtains info about ports and connections for generating graphs for algorithms"
berrySend.apiPlatform.exportManagement -> berrySend.apiPlatform.routeOptimization "Requests the generation of an optimized route for the requested export plan"
}
views {
systemContext berrySend {
include *
autolayout lr
}
container berrySend {
include *
autolayout lr
}
component berrySend.singlePageApplication {
include *
autolayout lr
}
component berrySend.apiPlatform {
include *
autolayout lr
}
styles {
element "ExternalSoftwareSystem" {
stroke #979797
color #979797
shape box
}
element "App" {
shape box
stroke #EBA028
color #EBA028
}
element "Web" {
shape "WebBrowser"
stroke #1B61E3
color #1B61E3
}
element "API" {
shape box
stroke #342087
color #342087
}
element "BD" {
shape cylinder
stroke #ec0e0e
color #ec0e0e
}
element "Context" {
shape "hexagon"
stroke #dcb400
color #dcb400
}
element "Element" {
color #55aa55
stroke #55aa55
strokeWidth 7
shape roundedbox
}
element "Person" {
shape person
}
element "Boundary" {
strokeWidth 1
}
relationship "Relationship" {
thickness 4
}
}
}
configuration {
scope softwaresystem
}
}