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
You will need to have [MongoDB](https://www.mongodb.com/) running,
63
-
by default on `localhost:27017`.
67
+
by default on `localhost:27017`
64
68
65
69
If you are running from the command line, you can override this by supplying
66
70
system properties like `-Dspring.data.mongodb.host=mongo.example.org` and
67
71
`-Dspring.data.mongodb.port=1337`
68
72
69
-
If you have Docker, but are not using the Docker Compose method above,
70
-
you may start MongoDB with [Docker](https://www.docker.com/) using:
71
-
72
-
docker run --name cwlviewer-mongo -p 27017:27017 -d mongo
73
-
74
-
**WARNING**: The above expose mongodb to the world on port `27017`.
75
-
76
-
## Configuration
77
-
78
-
There are a variety of configuration options detailed in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) which can be adjusted.
73
+
#### Apache Jena Fuseki (or alternative SPARQL server)
79
74
80
-
When deploying with docker, these can be overriden externally by creating/modifying `docker-compose.override.yml` as follows:
81
-
82
-
```yaml
83
-
version: '2'
84
-
services:
85
-
spring:
86
-
environment:
87
-
githubAPI.authentication: oauth
88
-
githubAPI.oauthToken: abcdefghhijklmnopqrstuvwxyz
89
-
```
90
-
91
-
The properties can alternatively be provided as system properties on the
92
-
command line, e.g. `-DgithubAPI.authentication=oauth`
93
-
`-DgithubAPI.oauthToken=abcdefghhijklmnopqrstuvwxyz`or via a [variety of other methods supported by Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
75
+
You will also need to have a SPARQL server such as [Apache Jena Fuseki](https://jena.apache.org/documentation/fuseki2/) running,
76
+
by default on `localhost:3030`
94
77
95
-
### Github API
96
-
97
-
If you run cwlviewer in production, you are likely to hit the GitHub API's rate limit of 60 requests/hr. This can be increased to 5000 requests/hr by using authentication (either basic or OAuth) by setting the `githubAPI.authentication` and either `githubAPI.oauthToken` or both `githubAPI.username` and `githubAPI.password` in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) depending on the method.
98
-
99
-
OAuth tokens can be obtained using the [Github authorizations API](https://developer.github.com/v3/oauth_authorizations/).
100
-
101
-
## Building and Running
78
+
## Compiling and Running
102
79
103
80
To compile you will need [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/index.html) or OpenJDK 8 (`apt install openjdk-8-jdk`),
104
81
as well as [Apache Maven 3](https://maven.apache.org/download.cgi) (`apt install maven`).
@@ -132,6 +109,25 @@ org.researchobject.CwlViewerApplication : Started CwlViewerApplication in 28.60
132
109
133
110
Now check out http://localhost:8080/ to access CWL Viewer.
134
111
112
+
## Configuration
113
+
114
+
There are a variety of configuration options detailed in the [application configuration file](https://github.com/common-workflow-language/cwlviewer/blob/master/src/main/resources/application.properties) which can be adjusted.
115
+
116
+
When deploying with docker, these can be overriden externally by creating/modifying `docker-compose.override.yml` as follows:
117
+
118
+
```yaml
119
+
version: '2'
120
+
services:
121
+
spring:
122
+
environment:
123
+
githubAPI.authentication: oauth
124
+
githubAPI.oauthToken: abcdefghhijklmnopqrstuvwxyz
125
+
```
126
+
127
+
The properties can alternatively be provided as system properties on the
128
+
command line, e.g. `-DgithubAPI.authentication=oauth`
129
+
`-DgithubAPI.oauthToken=abcdefghhijklmnopqrstuvwxyz`or via a [variety of other methods supported by Spring Boot](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html)
130
+
135
131
# Thanks
136
132
137
133
Developers and [contributors](https://github.com/common-workflow-language/cwlviewer/graphs/contributors) include:
0 commit comments