You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,10 @@ All the applications inside the monorepo are sharing the similar Apollo-Router i
69
69
70
70
> Apps should not depend on apps, they can depend on packages
71
71
72
+
#### Configuration
73
+
74
+
The application and proxy configuration is done via the AppConfig -file as much as possible, so there would be a single point for all the configuration.
Copy file name to clipboardExpand all lines: apps/events-helsinki/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,15 +91,15 @@ Events uses a lot of the components from the HCRC-lib. For example the article a
91
91
92
92
There are 2 Apollo-clients in implemented: an Apollo-client for _`Headless CMS` to fetch articles and dynamic pages_ from the CMS and an Apollo-client for _`LinkedEvents` to fetch events_ from the Event-proxy. They both contains URL-fields that are targeted to an external source. Since the content is wanted to be rendered inside the Events app, the URLs needs to be transformed so that they are pointing to an internal path. An Apollo Link is a create place to do the transformation, when the URL context is known. Therefore, the URL should include a hint of the context, e.g a context path like `/articles*` or `/pages*` or a domain e.g `linkedvents.hel.fi`.
93
93
94
-
The transformation table is in the `AppConfig.ts`:
94
+
The transformation table is in the [AppConfig.ts](./src/domain/app/AppConfig.ts):
95
95
96
96
```typescript
97
97
classAppConfig {
98
98
// ...
99
99
staticget linkedEventsEventEndpoint() {
100
100
returngetEnvOrError(
101
101
publicRuntimeConfig.linkedEvents,
102
-
'LINKEDEVENTS_EVENT_ENDPOINT'
102
+
"LINKEDEVENTS_EVENT_ENDPOINT"
103
103
);
104
104
}
105
105
staticget cmsArticlesContextPath() {
@@ -124,6 +124,10 @@ class AppConfig {
124
124
}
125
125
```
126
126
127
+
## Application configuration
128
+
129
+
The application configuration is done via the [AppConfig.ts](./src/domain/app/AppConfig.ts) as much as possible, so there would be a single point to configure it.
130
+
127
131
## Contact
128
132
129
133
City of Helsinki Slack channel _NO CHANNEL YET?_ (use #hobbieshelsinki)
Copy file name to clipboardExpand all lines: apps/hobbies-helsinki/README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,15 +98,15 @@ Hobbies uses a lot of the components from the HCRC-lib. For example the article
98
98
99
99
There are 2 Apollo-clients in implemented: an Apollo-client for _`Headless CMS` to fetch articles and dynamic pages_ from the CMS and an Apollo-client for _`LinkedEvents` to fetch events_ from the Event-proxy. They both contains URL-fields that are targeted to an external source. Since the content is wanted to be rendered inside the Hobbies app, the URLs needs to be transformed so that they are pointing to an internal path. An Apollo Link is a create place to do the transformation, when the URL context is known. Therefore, the URL should include a hint of the context, e.g a context path like `/articles*` or `/pages*` or a domain e.g `linkedvents.hel.fi`.
100
100
101
-
The transformation table is in the `AppConfig.ts`:
101
+
The transformation table is in the [AppConfig.ts](./src/domain/app/AppConfig.ts):
102
102
103
103
```typescript
104
104
classAppConfig {
105
105
// ...
106
106
staticget linkedEventsEventEndpoint() {
107
107
returngetEnvOrError(
108
108
publicRuntimeConfig.linkedEvents,
109
-
'LINKEDEVENTS_EVENT_ENDPOINT'
109
+
"LINKEDEVENTS_EVENT_ENDPOINT"
110
110
);
111
111
}
112
112
staticget cmsArticlesContextPath() {
@@ -131,6 +131,10 @@ class AppConfig {
131
131
}
132
132
```
133
133
134
+
## Application configuration
135
+
136
+
The application configuration is done via the [AppConfig.ts](./src/domain/app/AppConfig.ts) as much as possible, so there would be a single point to configure it.
0 commit comments