@@ -4,6 +4,7 @@ This Web app allows users to easily execute queries over multiple data sources (
4
4
inspect the corresponding results.
5
5
6
6
Table of contents:
7
+
7
8
* [ Preface] ( #preface )
8
9
* [ Getting Started] ( #getting-started )
9
10
* [ Static, production build] ( #static-production-build )
@@ -24,7 +25,7 @@ Table of contents:
24
25
25
26
## Preface
26
27
27
- This repository defines a Web application in the directory ` main ` and some auxiliary tools for testing and supporting a demo in the directory ` aux ` .
28
+ This repository defines a Web application in the directory ` main ` and some auxiliary tools for testing and supporting a demo in the directory ` test ` .
28
29
29
30
## Getting Started
30
31
@@ -47,13 +48,13 @@ Now you can browse the displayed URL.
47
48
The queries provided in the example configuration ` main/src/config.json ` access data located in pods at localhost.
48
49
To have these up and running, you need to install the auxiliary tools first.
49
50
50
- Go to directory ` aux ` and execute:
51
+ Go to directory ` test ` and execute:
51
52
52
53
``` bash
53
54
npm install
54
55
```
55
56
56
- Next, also in directory ` aux ` , activate the supporting resources:
57
+ Next, also in directory ` test ` , activate the supporting resources:
57
58
58
59
1 . In a new terminal window, prepare and start the local pods:
59
60
@@ -74,7 +75,7 @@ Next, also in directory `aux`, activate the supporting resources:
74
75
```
75
76
76
77
Some queries require a log in.
77
- Log in with the IDP ` http://localhost:8080 ` and the credentials for the user owning the pod named ` example ` in the file ` aux /seeded-pod-config.json` .
78
+ Log in with the IDP ` http://localhost:8080 ` and the credentials for the user owning the pod named ` example ` in the file ` test /seeded-pod-config.json` .
78
79
79
80
## Static, production build
80
81
@@ -302,9 +303,9 @@ They've already got styling matching that of `react-admin` and are easy to use.
302
303
To support the provided example configuration ` main/src/config.json ` and the tests, this repo integrates some local pods.
303
304
You can make use of these for your own tests. Follow these steps:
304
305
305
- * Add your data and ` .acl ` files in the ` aux /initial-pod-data` folder.
306
+ * Add your data and ` .acl ` files in the ` test /initial-pod-data` folder.
306
307
These files will be available in the pod relative to ` http://localhost:8080/example/ ` .
307
- * Prepare the pods by executing ` npm run reset:pods ` in directory ` aux ` .
308
+ * Prepare the pods by executing ` npm run reset:pods ` in directory ` test ` .
308
309
309
310
## Testing
310
311
@@ -329,31 +330,31 @@ The development version might be tested repeatedly during development.
329
330
npm run build
330
331
```
331
332
332
- In directory ` aux ` :
333
+ In directory ` test ` :
333
334
334
335
``` bash
335
- npx http-server -p 5173 ../main/dist
336
+ npm run serve
336
337
```
337
338
338
- 2 . In a new terminal window, in directory ` aux ` , prepare and start the local pods:
339
+ 2 . In a new terminal window, in directory ` test ` , prepare and start the local pods:
339
340
340
341
``` bash
341
342
npm run reset:pods && npm run start:pods
342
343
```
343
344
344
- 3 . In a new terminal window, in directory ` aux ` , start the http proxy:
345
+ 3 . In a new terminal window, in directory ` test ` , start the http proxy:
345
346
346
347
``` bash
347
348
npm run start:proxy
348
349
```
349
350
350
- 4 . In a new terminal window, in directory ` aux ` , start a server which denies all CORS headers:
351
+ 4 . In a new terminal window, in directory ` test ` , start a server which denies all CORS headers:
351
352
352
353
``` bash
353
354
npm run start:badCors
354
355
```
355
356
356
- 5 . Finally, in a new terminal window, in directory ` aux ` , you can execute the tests by running:
357
+ 5 . Finally, in a new terminal window, in directory ` test ` , you can execute the tests by running:
357
358
358
359
For normal test execution:
359
360
0 commit comments