Skip to content

Commit 37d1ed9

Browse files
authored
Merge pull request #17 from ArchDoc/feature/2-replace-services-with-components
#2 - Renamed 'services' to 'components'
2 parents 26a2033 + 895c80d commit 37d1ed9

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ ArchDoc UI allows users to define and visualize software systems. With ArchDoc U
55

66
## Why ArchDoc?
77

8-
ArchDoc UI is designed to tackle the problem of miscommunication between developers, architects, and other stakeholders in software development projects. With ArchDoc, you can define and visualize software models, which helps the whole team to know the services, components, and clients of your organization's software system..
8+
ArchDoc UI is designed to tackle the problem of miscommunication between developers, architects, and other stakeholders in software development projects. With ArchDoc, you can define and visualize software models, which helps the whole team to know the components, components, and clients of your organization's software system..
99

1010
## Features
1111

1212
- **Intuitive Diagrams**: ArchDoc UI arranges your organization's architecture in a clear, easy-to-understand graph. Powered by [React Flow](https://reactflow.dev/).
1313
- **Easy-to-use**: No need to learn a new diagram-as-code DSL, simply create a YAML file and use the `archdoc` cli tool to visualize it.
14-
- **Embedded Documentation**: Define and read documentation for your services, while exploring your architecture.
14+
- **Embedded Documentation**: Define and read documentation for your components, while exploring your architecture.
1515
- **Open-source**: By the people, for the people.
1616

1717
## Getting Started

examples/blog.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ users:
1212
ui: "Posts blog articles"
1313
documentation: "The admin user that posts articles."
1414

15-
services:
15+
components:
1616
ui:
1717
description: "The frontend application that serves the application users"
1818
repository: "https://github.com/example/myblogui"

examples/mealplanner.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ users:
1212
other-service: "Asks the other service for stuff"
1313
documentation: "The user of the application"
1414

15-
services:
15+
components:
1616
ui:
1717
description: "I CHANGED THIS!!!"
1818
repository: "https://github.com/ArchDoc/archdoc-ui"
@@ -32,7 +32,7 @@ services:
3232
documentation: "Documentation for the other service."
3333

3434
api:
35-
description: "The API gateway of the application. This services provides a REST API to consumers."
35+
description: "The API gateway of the application. This components provides a REST API to consumers."
3636
repository: "https://github.com/ArchDoc/archdoc-ui"
3737
tags:
3838
- "my"
@@ -41,7 +41,7 @@ services:
4141
auth-service: "Generates admin JWTs"
4242
recipe-service: "Manages users recipes"
4343
product-service: "Searches grocery store product catalogs"
44-
documentation: "The API gateway of the application. This services provides a REST API to consumers."
44+
documentation: "The API gateway of the application. This components provides a REST API to consumers."
4545

4646
auth-service:
4747
description: "A microservice with the purpose of authenticating and authorizing users. This service signs and returns properly signed JWTs to be reused by clients to access other resources"

examples/ridesharing.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ users:
1313
mobile-app: "B"
1414
driver-ui: "B"
1515

16-
services:
16+
components:
1717
mobile-app:
1818
description: "2"
1919
dependencies:

ui/public/simple-arch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ users:
1212
other-service: "Asks the other service for stuff"
1313
documentation: "The user of the application"
1414

15-
services:
15+
components:
1616
ui:
1717
description: "The user of the application"
1818
repository: "https://github.com/ArchDoc/archdoc-ui"
@@ -32,7 +32,7 @@ services:
3232
documentation: "Documentation for the other service."
3333

3434
api:
35-
description: "The API gateway of the application. This services provides a REST API to consumers."
35+
description: "The API gateway of the application. This components provides a REST API to consumers."
3636
repository: "https://github.com/ArchDoc/archdoc-ui"
3737
tags:
3838
- "my"
@@ -41,7 +41,7 @@ services:
4141
auth-service: "Generates admin JWTs"
4242
recipe-service: "Manages users recipes"
4343
product-service: "Searches grocery store product catalogs"
44-
documentation: "The API gateway of the application. This services provides a REST API to consumers."
44+
documentation: "The API gateway of the application. This components provides a REST API to consumers."
4545

4646
auth-service:
4747
description: "A microservice with the purpose of authenticating and authorizing users. This service signs and returns properly signed JWTs to be reused by clients to access other resources"

ui/src/examples/simple-arch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"name": "api",
28-
"description": "The API gateway of the application. This services provides a REST API to consumers.",
28+
"description": "The API gateway of the application. This components provides a REST API to consumers.",
2929
"tags": ["my", "api"],
3030
"repository": "https://github.com/ArchDoc/archdoc-ui",
3131
"consumers": [
@@ -36,7 +36,7 @@
3636
{ "sourceId": "api", "targetId": "recipe-service", "description": "Manages users recipes" },
3737
{ "sourceId": "api", "targetId": "product-service", "description": "Searches grocery store product catalogs" }
3838
],
39-
"documentation": "The API gateway of the application. This services provides a REST API to consumers."
39+
"documentation": "The API gateway of the application. This components provides a REST API to consumers."
4040
},
4141
{
4242
"name": "auth-service",

ui/src/examples/simple-arch.new.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{
4444
"name": "api",
4545
"type": "service",
46-
"description": "The API gateway of the application. This services provides a REST API to consumers.",
46+
"description": "The API gateway of the application. This components provides a REST API to consumers.",
4747
"tags": ["my", "api"],
4848
"repository": "https://github.com/ArchDoc/archdoc-ui",
4949
"consumers": [
@@ -55,7 +55,7 @@
5555
{ "componentId": "product-service", "description": "Searches grocery store product catalogs" },
5656
{ "componentId": "widget-service", "description": "Searches grocery store product catalogs" }
5757
],
58-
"documentation": "The API gateway of the application. This services provides a REST API to consumers."
58+
"documentation": "The API gateway of the application. This components provides a REST API to consumers."
5959
},
6060
{
6161
"name": "auth-service",

ui/src/examples/simple-arch.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ users:
1111
other-service: "Asks the other service for stuff"
1212
documentation: "The user of the application"
1313

14-
services:
14+
components:
1515
ui:
1616
description: "The user of the application"
1717
repository: "https://github.com/ArchDoc/archdoc-ui"
@@ -31,7 +31,7 @@ services:
3131
documentation: "Documentation for the other service."
3232

3333
api:
34-
description: "The API gateway of the application. This services provides a REST API to consumers."
34+
description: "The API gateway of the application. This components provides a REST API to consumers."
3535
repository: "https://github.com/ArchDoc/archdoc-ui"
3636
tags:
3737
- "my"
@@ -40,7 +40,7 @@ services:
4040
auth-service: "Generates admin JWTs"
4141
recipe-service: "Manages users recipes"
4242
product-service: "Searches grocery store product catalogs"
43-
documentation: "The API gateway of the application. This services provides a REST API to consumers."
43+
documentation: "The API gateway of the application. This components provides a REST API to consumers."
4444

4545
auth-service:
4646
description: "A microservice with the purpose of authenticating and authorizing users. This service signs and returns properly signed JWTs to be reused by clients to access other resources"

ui/src/examples/simpleArch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ users:
1212
other-service: "Asks the other service for stuff"
1313
documentation: "The user of the application"
1414
15-
services:
15+
components:
1616
ui:
1717
description: "The user of the application"
1818
repository: "https://github.com/ArchDoc/archdoc-ui"
@@ -30,7 +30,7 @@ services:
3030
- "other"
3131
documentation: "Documentation for the other service."
3232
api:
33-
description: "The API gateway of the application. This services provides a REST API to consumers."
33+
description: "The API gateway of the application. This components provides a REST API to consumers."
3434
repository: "https://github.com/ArchDoc/archdoc-ui"
3535
tags:
3636
- "my"
@@ -39,7 +39,7 @@ services:
3939
auth-service: "Generates admin JWTs"
4040
recipe-service: "Manages users recipes"
4141
product-service: "Searches grocery store product catalogs"
42-
documentation: "The API gateway of the application. This services provides a REST API to consumers."
42+
documentation: "The API gateway of the application. This components provides a REST API to consumers."
4343
auth-service:
4444
description: "A microservice with the purpose of authenticating and authorizing users. This service signs and returns properly signed JWTs to be reused by clients to access other resources"
4545
tags:

ui/src/models/ArchdocSpec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export interface ArchdocComponentSpec {
1212
export interface ArchdocSpec {
1313
archdoc: string
1414
users: Record<string, ArchdocComponentSpec>
15-
services: Record<string, ArchdocComponentSpec>
15+
components: Record<string, ArchdocComponentSpec>
1616
}
1717

1818
export const ArchdocSpecSchema: JSONSchemaType<ArchdocSpec> = {
@@ -50,7 +50,7 @@ export const ArchdocSpecSchema: JSONSchemaType<ArchdocSpec> = {
5050
required: [],
5151
additionalProperties: false
5252
},
53-
services: {
53+
components: {
5454
type: "object",
5555
patternProperties: {
5656
"^.*$": {
@@ -82,6 +82,6 @@ export const ArchdocSpecSchema: JSONSchemaType<ArchdocSpec> = {
8282
additionalProperties: false
8383
},
8484
},
85-
required: ["archdoc", "users", "services"],
85+
required: ["archdoc", "users", "components"],
8686
additionalProperties: false,
8787
}

0 commit comments

Comments
 (0)