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
### 3. Install MySQL for Cube.js External Pre-Aggregations
181
181
182
-
This template uses MySQL as an external pre-aggregations database for performance optimization. Cube.js builds pre-aggregations from data stored in the main data warehouse, Athena in this example, and then uploads them into MySQL. Cube.js handles the refresh and partitioning of the pre-aggregations as well.
183
-
184
-
You need to provide the following environment variables for Cube.js to connect to MySQL: `CUBEJS_EXT_DB_HOST`, `CUBEJS_EXT_DB_NAME`, `CUBEJS_EXT_DB_PORT`, `CUBEJS_EXT_DB_USER`, `CUBEJS_EXT_DB_PASS`. You can learn more about [external pre-aggregations in the documentation here.](https://cube.dev/docs/pre-aggregations#external-pre-aggregations)
182
+
This template uses MySQL as an external pre-aggregations database for performance optimization. Cube.js builds pre-aggregations from data stored in the main data warehouse, Athena in this example, and then uploads them into MySQL. Cube.js handles the refresh and partitioning of the pre-aggregations as well. You need to install MySQL and let Cube.js to connect to it. You can learn more about [external pre-aggregations in the documentation here.](https://cube.dev/docs/pre-aggregations#external-pre-aggregations)
185
183
186
184
### 4. Install Cube.js backend and React frontend applications
187
185
188
-
Docker container Configure via env variables
186
+
First, you need to download or clone the code inside `examples/web-analytics`
187
+
folder and install all the dependencies by running the following command:
188
+
189
+
```bash
190
+
$ npm install
191
+
```
192
+
193
+
The next step is to set environment variables required to run Cube.js backend.
194
+
You can use `.env` file to store your credentials or provide them in any other way
195
+
you'd prefer. Here the list of env variables you need to provide -
196
+
197
+
```
198
+
CUBEJS_AWS_REGION=Your Athena region (e.g. us-east-1)
0 commit comments