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
-[Developer Center specific setup](#developer-center-specific-setup)
14
15
-[Yarn Commands](#yarn-commands)
15
16
16
17
# Application structure
@@ -119,6 +120,37 @@ The "dev" branch is auto-deployed to the dev environment: https://platform-mvp.t
119
120
120
121
The "master" branch is auto-deployed to the production environment: https://platform-mvp.topcoder.com.
121
122
123
+
## Developer Center specific setup
124
+
125
+
### Contentful API Key and Space Id
126
+
127
+
The app requires two environment variables, which contain the space id and the key used to access contentful and retrieve Thrive Articles.
128
+
129
+
You should create a file named `.env` in the root folder, and write inside the following lines:
130
+
131
+
```sh
132
+
REACT_APP_CONTENTFUL_EDU_SPACE_ID=<space-id>
133
+
REACT_APP_CONTENTFUL_EDU_CDN_API_KEY=<API Key>
134
+
```
135
+
136
+
We should use the same space ID and API Key as Topcoder Thrive, these are for fetching Thrive articles and videos in the landing page.
137
+
138
+
### Landing page configuration
139
+
140
+
We can configure up to 5 articles shown on the landing page. The articles can be from Topcoder Thrive and/or Topcoder Blog.
141
+
142
+
The configuration file is located at `src-ts/tools/dev-center/dev-center-pages/community-app/landing-page/dev-center-articles-section/articles.config.ts`.
143
+
144
+
We can configure the image carousel on the landing page, the configuration file is located at `src-ts/tools/dev-center/dev-center-pages/community-app/landing-page/dev-center-header/carousel-content.config.ts`.
145
+
146
+
The local images for the carousel should be put in `src-ts/tools/dev-center/carousel-images`.
147
+
148
+
### Getting Started page configuration.
149
+
150
+
The content of the getting started page is from a Markdown text, the source is located at `src-ts/tools/dev-center/dev-center-pages/community-app/getting-started/GettingStartedGuide.md`.
151
+
152
+
The local images for the markdown should be put in `src-ts/tools/dev-center/images`.
0 commit comments