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
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ RequestHeader set X-Forwarded-Port 443
49
49
50
50
To make this work with a K8s nginx Ingress one needs to enable the property
51
51
52
-
```bash
52
+
```
53
53
use-forwarded-headers true
54
54
```
55
55
@@ -59,39 +59,40 @@ If not set / is used by default.
59
59
60
60
### PostgreSQL
61
61
62
-
Make sure to have a [PostgreSQL](https://www.postgresql.org) server installed and running on your system. The MassBank data will be stored there.
62
+
Make sure to have a [PostgreSQL](https://www.postgresql.org) server installed and running on your system. The MassBank
63
+
data will be stored there.
63
64
64
-
By default, the export service expects the PostgreSQL service running at _localhost_ with port 5432 and the database _postgres_. Default user is _postgres_ and password is _postgres_.
65
+
By default, the export service expects the PostgreSQL service running at _localhost_ with port 5432 and the database
66
+
_records_. Default user is _massbank_export_api_user_ and password is _massbank-export-api-password_.
65
67
66
-
## Build and Run
67
68
68
-
Run the _run-cmd.sh_ script to let build the JAR file in _target_ directory and to start the export api service with all pre-configured variables.
69
+
## Build and Run
69
70
70
-
```bash
71
-
sh run-cmd.sh
72
-
```
71
+
Build the service with Maven:
72
+
```mvn package```
73
+
Run the service:
74
+
```java -jar target/massbank-export-api-*.jar```
73
75
74
76
## Run with Docker
75
77
76
78
### Build and Run
77
79
78
-
Start the _run-docker.sh_ script to let build and run the server in a Docker container with default settings.
80
+
The file `docker-compose.yml` provides the config to build and run the postgres database and the MassBank-export-api
81
+
with docker. First build the package with `mvn package` as described above. Then copy `env.dist` file to `.env` file
82
+
and configure to your needs. Then build and run with:
0 commit comments