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.
79
-
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)
94
-
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.
73
+
#### Apache Jena Fuseki (or alternative SPARQL server)
98
74
99
-
OAuth tokens can be obtained using the [Github authorizations API](https://developer.github.com/v3/oauth_authorizations/).
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`
100
77
101
-
## Private Repositories
102
-
103
-
If you wish to use cwlviewer to view private Github repositories, set
104
-
105
-
```
106
-
githubAPI.useForDownloads = true
107
-
singleFileSizeLimit = 1048575
108
-
```
109
-
110
-
Along with an authentication method which has the privileges necessary to access the repository (see above).
111
-
112
-
**WARNING**: This uses the [Github Contents API](https://developer.github.com/v3/repos/contents/) to download files instead of [Rawgit](https://rawgit.com/) which will increase API calls significantly.
113
-
114
-
## Building and Running
78
+
## Compiling and Running
115
79
116
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`),
117
81
as well as [Apache Maven 3](https://maven.apache.org/download.cgi) (`apt install maven`).
@@ -145,6 +109,25 @@ org.researchobject.CwlViewerApplication : Started CwlViewerApplication in 28.60
145
109
146
110
Now check out http://localhost:8080/ to access CWL Viewer.
147
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
+
148
131
# Thanks
149
132
150
133
Developers and [contributors](https://github.com/common-workflow-language/cwlviewer/graphs/contributors) include:
0 commit comments