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
On Windows, `patch.exe` has to exist in the PATH. It is distributed as part of git bash, or can be downloaded manually from [GnuWin32][].
26
52
27
53
## Running on your local machine
28
-
Make sure that you have read-write-access on the **data** directory (in your project directory) for Elasticsearch and MongoDB. Specifically **Mac** users need to run the following command to create all data directories before bringing up the containers for the first time:
54
+
55
+
### 1. Prepare local service directories
56
+
57
+
Make sure that you have read-write access on the **data** directory in your project directory for Elasticsearch and MongoDB. Specifically **Mac** users need to run the following command to create all data directories before bringing up the containers for the first time:
Otherwise your Docker Host will attempt to change permissions on the directories and fail.
33
62
34
-
Use `docker-compose up` to create all containers initially. MongoDB and Elasticsearch will be listening on their default ports. MailDev will show all locally sent email on 8081 and the identity-provider can be setup on port 8082. Any time after that use either `docker-compose up` or `docker-compose start`.
63
+
Otherwise your Docker host may attempt to change permissions on the directories and fail.
64
+
65
+
### 2. Start Docker services
66
+
67
+
Start Docker Desktop first. Then start the local infrastructure:
68
+
69
+
```bash
70
+
docker compose up -d
71
+
```
72
+
73
+
MongoDB and Elasticsearch listen on their default ports. MailDev shows locally sent email on `http://localhost:8081`, and the identity provider is available on `http://localhost:8082`.
35
74
36
75
In case elasticsearch does not start successfully, you might need to increase its memory limit
37
-
`mem_limit: 512m`, e.g. to `1024` (this change required removing and re-building the container).
76
+
`mem_limit: 512m`, e.g. to `1024` (this change requires removing and re-building the container).
38
77
39
-
You can get a MongoDB dump and restore it locally:
Run `mvn`**first** to start the Spring backend and to **make sure** the frontend Angular constants module has been generated by the Maven Plugin. Run `npm --prefix mdm-frontend start` to start the Angular Frontend.
### 10. Optional: run local frontend against production API
218
+
219
+
Create or use `mdm-frontend/proxy.prod.conf.json` with production targets for `/api`, `/oauth`, `/management`, and `/websocket`. Then start the frontend on a separate port:
220
+
221
+
```bash
222
+
cd mdm-frontend
223
+
npm run ng -- serve --port 4201 --proxy-config proxy.prod.conf.json
224
+
```
225
+
226
+
Open:
227
+
228
+
```text
229
+
http://localhost:4201/
230
+
```
231
+
232
+
This runs local frontend code against the production backend/search API.
233
+
234
+
### 11. Optional: check the ELSST version
235
+
236
+
The MDM interface uses ELSST keywords from the CESSDA ELSST thesaurus. The configured ELSST version is used in:
Run the version check before releases and after CESSDA publishes a new ELSST release:
245
+
246
+
```bash
247
+
npm --prefix mdm-frontend run check:elsst-version
248
+
```
249
+
250
+
The check compares the MDM configuration with the current CESSDA `https://thesauri.cessda.eu/elsst/` redirect. If it fails, update the configured ELSST version, update the info dialog text, and verify the release notes:
251
+
252
+
```text
253
+
https://elsst.cessda.eu/releases
254
+
```
94
255
95
256
If you run the backend on your machine for the first time, or you have restored a
96
257
mongodb dump, then you need to setup/reindex the elasticsearch indices. Therefore, login as admin to the application,
0 commit comments