Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
davydkov committed Jan 11, 2024
1 parent 18c7bac commit 08a0379
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
14 changes: 9 additions & 5 deletions src/cloud/backend.c4
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
model {

extend aws {
pg = database 'PostgreSQL' {
pg = database 'PostgreSQL' {
technology 'AWS Aurora PostgreSQL'
description 'Database for storing relational data'
link https://aws.amazon.com/rds/postgresql/
style {
icon https://icons.terrastruct.com/dev%2Fpostgresql.svg
}
Expand Down Expand Up @@ -66,19 +67,22 @@ views {
title 'Databases'
include
*,
aws,
aws with {
title 'AWS - PostgreSQL'
},
cloud,
cloud.* -> aws.pg
cloud.* -> pg.*
exclude pg

style * {
color secondary
}

style cloud, aws, aws.pg {
style cloud, aws {
color muted
}

style aws.pg.* {
style pg.* {
color green
}
}
Expand Down
7 changes: 5 additions & 2 deletions src/cloud/ui.c4
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ model {
mobile = mobile 'Mobile App' {
technology 'Flutter'
description 'The mobile app of the cloud system'
link https://flutter.dev/

-> cloud.backend.graphql 'fetches data'
-> aws.cognito 'authenticates'
}
Expand All @@ -26,12 +28,13 @@ model {
views {

view cloud_ui of cloud.ui {

include
*,
cloud,
aws,
cloud.ui -> aws.*
exclude
cloud.ui

style * {
color secondary
Expand All @@ -41,7 +44,7 @@ views {
color muted
}

style cloud.ui, cloud.ui.* {
style cloud.ui.* {
color green
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/model.c4
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ model {
description 'Customer of the cloud system'
}

cloud = system 'Cloud System' {
cloud = system 'Cloud System' {
link https://likec4.dev
description '
Our SaaS platfrom that allows
customers to interact with
Expand All @@ -18,7 +19,8 @@ model {
}
}

backend = component 'Backend' {
backend = component 'Backend' {
link https://github.com/likec4/likec4
description 'The backend services of the cloud system'
}

Expand All @@ -28,6 +30,7 @@ model {
customer -> ui 'uses web and mobile'

aws = system 'Amazon Web Services' {
link https://aws.amazon.com/
description '
Cloud Infrastructure and
Managed Services
Expand All @@ -38,6 +41,7 @@ model {
}

cognito = component 'Cognito' {
link https://aws.amazon.com/cognito/
description 'Provides user management and authentication'
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/views.c4
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ views {
style aws, cloud {
color muted
}
style aws.* {
color green
}
}

}
}

0 comments on commit 08a0379

Please sign in to comment.