Skip to content

Commit 1b369ec

Browse files
authored
Merge pull request #1 from sgantaya/copy-example-sys
Copy car-order-system and components to tibco-examples folder
2 parents 83a8192 + a3fd841 commit 1b369ec

14 files changed

+1390
-2
lines changed

app-config.template-local.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,18 @@ catalog:
2828
- type: file
2929
target: ../../tibco-examples/tibco-examples.yaml
3030
rules:
31-
- allow: [Group, Template, System, Domain, Location]
32-
31+
- allow:
32+
[
33+
Component,
34+
API,
35+
Location,
36+
Template,
37+
User,
38+
Group,
39+
Domain,
40+
System,
41+
Resource,
42+
]
3343
auth:
3444
# see https://backstage.io/docs/auth/ to learn about auth providers
3545
environment: development
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: "db-adapter"
5+
description: "Database Adapter"
6+
tags:
7+
- backend
8+
- data-layer
9+
- bwce
10+
- adapter
11+
links:
12+
- title: TIBCO Business Works
13+
url: https://www.tibco.com/products/tibco-businessworks
14+
- title: BWCE Documentation
15+
url: https://docs.tibco.com/products/tibco-businessworks-container-edition-2-9-0
16+
annotations:
17+
github.com/project-slug: TIBCO-Hub-Backstage/tibco-examples
18+
backstage.io/techdocs-ref: dir:.
19+
spec:
20+
type: service
21+
lifecycle: production
22+
system: car-order-system
23+
owner: operational-department
24+
providesApis: ["car-details-api"]
25+
dependsOn:
26+
- resource:default/cars-database
27+
---
28+
apiVersion: backstage.io/v1alpha1
29+
kind: API
30+
metadata:
31+
name: "car-details-api"
32+
description: "An API that provides car details"
33+
tags:
34+
- store
35+
- rest
36+
links:
37+
- url: https://github.com/TIBCO-Hub-Backstage/tibco-examples
38+
title: GitHub Repo
39+
icon: github
40+
- url: https://github.com/TIBCO-Hub-Backstage/tibco-examples/blob/master/sample-api.json
41+
title: API Spec
42+
icon: code
43+
spec:
44+
type: openapi
45+
lifecycle: production
46+
owner: "CarImporter"
47+
apiConsumedBy:
48+
["component:discount-calculator", "component:car-information-provider"]
49+
definition:
50+
$text: ./sample-api.json
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Location
3+
metadata:
4+
name: all-car-importer-components
5+
description: A collection of all Car Importer components
6+
spec:
7+
targets:
8+
- ./catalog-info.yaml
9+
- ./ci-resources.yaml
10+
- ./car-order-system.yaml
11+
- ./bwce-database-adapter.yaml
12+
- ./flogo-car-information-provider.yaml
13+
- ./flogo-discount-calculator.yaml
14+
- ./spotfire-car-analyzer.yaml
15+
- ./ui-car-order-system.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: System
3+
metadata:
4+
name: car-order-system
5+
description: "A system to Order New Cars"
6+
annotations:
7+
github.com/project-slug: TIBCO-Hub-Backstage/tibco-examples
8+
backstage.io/techdocs-ref: dir:.
9+
tags:
10+
- cars
11+
- tibco-examples
12+
spec:
13+
owner: group:CarImporter
14+
domain: cars
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Group
3+
metadata:
4+
name: CarImporter
5+
description: A company that imports cars
6+
spec:
7+
type: organization
8+
profile:
9+
displayName: Car Importer
10+
11+
children: [finance-department, operational-department]
12+
---
13+
apiVersion: backstage.io/v1alpha1
14+
kind: Group
15+
metadata:
16+
name: finance-department
17+
description: The Finance Department
18+
spec:
19+
type: department
20+
profile:
21+
displayName: The Finance Department
22+
23+
parent: CarImporter
24+
children: []
25+
---
26+
apiVersion: backstage.io/v1alpha1
27+
kind: Group
28+
metadata:
29+
name: operational-department
30+
description: The Operational Department
31+
spec:
32+
type: department
33+
profile:
34+
displayName: The Operational Department
35+
36+
parent: CarImporter
37+
children: []
38+
---
39+
apiVersion: backstage.io/v1alpha1
40+
kind: Domain
41+
metadata:
42+
name: cars
43+
description: Everything related to Cars
44+
spec:
45+
owner: group:CarImporter
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Cars Database (DB)
2+
apiVersion: backstage.io/v1alpha1
3+
kind: Resource
4+
metadata:
5+
name: cars-database
6+
description: Database that contains all the car details
7+
tags:
8+
- database
9+
- car-details
10+
spec:
11+
type: database
12+
lifecycle: production
13+
owner: operational-department
14+
apiConsumedBy: ['component:db-adapter']
15+
# Car Promotional Material (S3 Bucket)
16+
---
17+
apiVersion: backstage.io/v1alpha1
18+
kind: Resource
19+
metadata:
20+
name: cars-promotional-materials
21+
description: S3 Bucket that contains all the promotional materials
22+
tags:
23+
- s3-bucket
24+
- promotional-materials
25+
spec:
26+
type: s3-bucket
27+
lifecycle: production
28+
owner: operational-department
29+
apiConsumedBy: ['component:car-information-provider']
30+
# Market Price Provider (External API)
31+
---
32+
apiVersion: backstage.io/v1alpha1
33+
kind: Resource
34+
metadata:
35+
name: market-price-provider
36+
description: API that provides all the active market prices
37+
tags:
38+
- external
39+
- api
40+
spec:
41+
type: external-api
42+
lifecycle: production
43+
owner: finance-department
44+
apiConsumedBy: ['component:discount-calculator']
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Documentation for: Car Order System
2+
3+
---
4+
5+
A system to Order New Cars
6+
7+
---
8+
9+
**Introduction to Car Ordering System**
10+
11+
The Car Order System is a simple online tool that helps people buy cars easily. You can look at different car models, compar them, and pick extras like colors and wheels right from your computer or phone. It shows the latest prices and when you can expect to get your car. This system is freat for both car buyers and sellers because it makes everything clear and quick. Buyers can see how their car will look, and sellers can keep track of orders and talk to customers better. It's made to fit all kinds of cars, including electric ones, making the car buying a smooth experience for everyone.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: "car-information-provider"
5+
description: "Car Information Provider Service"
6+
tags:
7+
- backend
8+
- data-layer
9+
- flogo
10+
annotations:
11+
github.com/project-slug: TIBCO-Hub-Backstage/tibco-examples
12+
backstage.io/techdocs-ref: dir:.
13+
spec:
14+
type: service
15+
lifecycle: production
16+
system: car-order-system
17+
owner: operational-department
18+
providesApis: ["car-information-api"]
19+
consumesApis:
20+
- car-details-api
21+
dependsOn:
22+
- resource:default/cars-promotional-materials
23+
---
24+
apiVersion: backstage.io/v1alpha1
25+
kind: API
26+
metadata:
27+
name: "car-information-api"
28+
description: "An API that provides car details, and points to resources"
29+
tags:
30+
- store
31+
- rest
32+
spec:
33+
type: openapi
34+
lifecycle: production
35+
system: car-order-system
36+
owner: operational-department
37+
apiConsumedBy: ["component:car-order-ui"]
38+
definition:
39+
$text: ./sample-api.json
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: backstage.io/v1alpha1
2+
kind: Component
3+
metadata:
4+
name: "discount-calculator"
5+
description: "Car Discount Calculation Service"
6+
tags:
7+
- backend
8+
- data-layer
9+
- flogo
10+
links:
11+
- title: Project Flogo
12+
url: https://www.flogo.io/
13+
- title: Repository
14+
url: https://github.com/TIBCOSoftware/flogo
15+
- title: Flogo - Open Source
16+
url: https://github.com/project-flogo
17+
annotations:
18+
github.com/project-slug: TIBCO-Hub-Backstage/tibco-examples
19+
backstage.io/techdocs-ref: dir:.
20+
spec:
21+
type: service
22+
lifecycle: production
23+
system: car-order-system
24+
owner: finance-department
25+
providesApis: ["car-discount-api"]
26+
consumesApis:
27+
- car-details-api
28+
---
29+
apiVersion: backstage.io/v1alpha1
30+
kind: API
31+
metadata:
32+
name: "car-discount-api"
33+
description: "An API that provides car discounts"
34+
tags:
35+
- finance
36+
- rest
37+
links:
38+
- url: https://github.com/TIBCO-Hub-Backstage/tibco-examples
39+
title: GitHub Repo
40+
icon: github
41+
- url: https://github.com/TIBCO-Hub-Backstage/tibco-examples/blob/master/sample-api.json
42+
title: API Spec
43+
icon: code
44+
spec:
45+
type: openapi
46+
lifecycle: production
47+
owner: finance-department
48+
apiConsumedBy: ["component:car-order-ui"]
49+
definition:
50+
$text: ./sample-api.json
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
site_name: "car-importer-demo"
2+
site_description: "A system to import Cars"
3+
4+
nav:
5+
- Introduction: index.md
6+
7+
plugins:
8+
- techdocs-core

0 commit comments

Comments
 (0)