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: CONTRIBUTING.md
+57-22Lines changed: 57 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,35 +3,70 @@
3
3
MarkLogic Data Hub welcomes new contributors. This document will guide you
4
4
through the process.
5
5
6
-
-[Issues and Bugs](#issue)
7
-
-[Feature Requests](#feature)
8
-
-[Submission Guidelines](#submit)
6
+
-[Issues and Bugs](#found-an-issue)
7
+
-[Feature Requests](#want-a-feature)
8
+
-[Building from Source](#building-the-framework-from-source)
9
+
-[Submission Guidelines](#submission-guidelines)
9
10
10
-
## <aname="issue"></a> Found an Issue?
11
+
## Found an Issue?
11
12
If you find a bug in the source code or a mistake in the documentation, you can help us by submitting an issue to our [GitHub Issue Tracker][issue tracker]. Even better you can submit a Pull Request
12
13
with a fix for the issue you filed.
13
14
14
-
## <aname="feature"></a> Want a Feature?
15
+
## Want a Feature?
15
16
You can request a new feature by submitting an issue to our [GitHub Issue Tracker][issue tracker]. If you
16
17
would like to implement a new feature then first create a new issue and discuss it with one of our
17
18
project maintainers.
18
19
19
-
## <aname="submit"></a> Submission Guidelines
20
+
## Building the Framework from Source
21
+
Looking to build the code from source? Look no further.
22
+
23
+
#### Prerequisites
24
+
You need these to get started
25
+
26
+
- Java 8 JDK
27
+
- Gradle (the newer the better)
28
+
- Node JS 6.5 or newer
29
+
- Typings `npm -g install typings`
30
+
- A decent IDE. IntelliJ is nice.
31
+
32
+
#### Building from the command line
33
+
**First, a warning.**_The DHF has a ton of tests and they take a very long time to run. Considering you might not want to invest 30 minutes to wait for tests these instructions will show you how to skip the tests._
34
+
35
+
To build the entire DHF (marklogic-data-hub.jar, quickstart.war, and ml-data-hub-plugin for gradle) simply run this command:
36
+
37
+
```bash
38
+
cd /path/to/data-hub-project/
39
+
gradle build -x test
40
+
```
41
+
42
+
#### Running the QuickStart UI from source
43
+
Make sure you have the prerequisites installed.
44
+
45
+
You will need to open two terminal windows.
46
+
47
+
**Terminal window 1** - This runs the webapp.
48
+
```bash
49
+
cd /path/to/data-hub-project
50
+
gradle bootrun
51
+
```
52
+
53
+
**Terminal window 2** - This runs the Quickstart UI
54
+
```
55
+
cd /path/to/data-hub-project/quick-start
56
+
npm install
57
+
npm start
58
+
```
59
+
60
+
Now open your browser to [http://localhost:4200](http://localhost:4200) to use the debug version of the Quickstart UI.
61
+
62
+
## Submission Guidelines
20
63
21
64
### Submitting an Issue
22
65
Before you submit your issue search the archive, maybe your question was already answered.
23
66
24
67
If your issue appears to be a bug, and hasn't been reported, open a new issue.
25
68
Help us to maximize the effort we can spend fixing issues and adding new
26
-
features, by not reporting duplicate issues. Providing the following information will increase the
27
-
chances of your issue being dealt with quickly:
28
-
29
-
***Overview of the Issue** - if an error is being thrown a stack trace helps
30
-
***Motivation for or Use Case** - explain why this is a bug for you
31
-
***Version** - which version is it?
32
-
***Operating System** - Mac, windows? details help
33
-
***Suggest a Fix** - if you can't fix the bug yourself, perhaps you can point to what might be
34
-
causing the problem (line of code or commit)
69
+
features, by not reporting duplicate issues. Please fill out the issue template so that your issue can be dealt with quickly.
35
70
36
71
### Submitting a Pull Request
37
72
@@ -55,10 +90,10 @@ your vision does not align with that of a project maintainer.
55
90
#### Create a branch for your changes
56
91
57
92
Okay, so you have decided to fix something. Create a feature branch
58
-
and start hacking:
93
+
and start hacking. **Note** that we use git flow and thus our most recent changes live on the develop branch.
Copy file name to clipboardExpand all lines: README.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,4 +13,69 @@ This project allows you to deploy a skeleton Data Hub into MarkLogic. With some
13
13
14
14
# Getting Started
15
15
16
+
###TL;DR
17
+
16
18
Head over to our [Getting Started Tutorial](https://marklogic.github.io/marklogic-data-hub/) to get up and running with the Data Hub.
19
+
20
+
Or watch the [MarkLogic University - Data Hub Framework On Demand Video Courses](http://mlu.marklogic.com/ondemand/index.xqy?q=Series%3A%22Operational%20Data%20Hubs%22)
21
+
22
+
###The Easiest Way
23
+
24
+
To use the Data Hub Framework you should download the quickstart.war file from the [releases page](https://github.com/marklogic/marklogic-data-hub/releases).
25
+
26
+
Then Run the war like so:
27
+
28
+
```bash
29
+
java -jar quickstart.war
30
+
```
31
+
32
+
###Using the Hub in your existing Java project
33
+
34
+
Alternatively you can include the jar file as a build dependency in your Java project. Make sure you reference the latest version.
If you prefer to use gradle for all of your hub interactions then you can include the ml-data-hub gradle plugin in your build.gradle file:
64
+
65
+
```groovy
66
+
plugins {
67
+
id 'com.marklogic.ml-data-hub' version '1.0.0'
68
+
}
69
+
```
70
+
71
+
Now you have full access to the Data Hub tasks. To see all available tasks run:
72
+
73
+
```bash
74
+
gradle tasks
75
+
```
76
+
77
+
# Building From Source
78
+
79
+
Feeling intrepid? Want to contrubute to the Data Hub Framework? Perhaps you just want to poke the code?
80
+
81
+
Look at our [CONTRIBUTING.md](https://github.com/marklogic/marklogic-data-hub/blob/master/CONTRIBUTING.md#building-the-framework-from-source) file for details on building from source.
0 commit comments