Skip to content

Commit bddbaf4

Browse files
authored
Merge pull request #19 from delphi-hub/develop
Pre-Release Merge
2 parents f07e5d6 + d876af9 commit bddbaf4

26 files changed

+1246
-85
lines changed

.github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Affected components (if known)**
24+
Choose those applicable here: crawler, cli, webapi, webapp, management
25+
26+
**Desktop (please complete the following information, if relevant):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information, if relevant):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
Just using "none" is okay here.
16+
17+
**Additional context**
18+
Add any other context or screenshots about the feature request here.

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
language: scala
22
scala:
3-
- 2.12.4
3+
- 2.12.4
4+
script:
5+
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then sbt ++$TRAVIS_SCALA_VERSION test; fi'
6+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sbt ++$TRAVIS_SCALA_VERSION coverage test coverageReport coverageAggregate codacyCoverage; fi'
7+
after_success:
8+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash <(curl -s https://codecov.io/bash); fi'

CODE_OF_CONDUCT.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at ben.hermann@uni-paderborn.de. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contribution Guide
2+
3+
We follow the GitHub [Fork & Pull][forkandpull] and [Git Flow][gitflow] workflow in this project.
4+
Please fork the official repository, develop in a branch based on the
5+
current develop branch, and submit a pull request (PR) after you are done.
6+
7+
[forkandpull]: https://help.github.com/articles/about-pull-requests/
8+
[gitflow]: http://nvie.com/posts/a-successful-git-branching-model/
9+
10+
## Checklist before submitting a Pull Request
11+
12+
Before you submit your PR, please go through this list and check if
13+
your request fulfills these points.
14+
15+
- Do you have more changes/additions/deletions in your PR than you expected?
16+
- Do you have tests for your changes?
17+
- Do all tests of the project succeed?
18+
- Is your pull request based on the `develop` branch? [(cf. GitFlow)][gitflow]
19+
20+
If you check these items before, your pull request is more likely to be
21+
included into the project quickly.
22+

LICENSE

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,7 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
178+
Copyright 2018 The Delphi Team (represented by Ben Hermann)
190179

191180
Licensed under the Apache License, Version 2.0 (the "License");
192181
you may not use this file except in compliance with the License.

README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Delphi Web API
2+
3+
The web API implementation for the Delphi platform.
4+
5+
We are currently in pre-alpha state! There is no release and the code in
6+
this repository is purely experimental!
7+
8+
|branch | status | codacy |
9+
| :---: | :---: | :---: |
10+
| master | [![Build Status](https://travis-ci.org/delphi-hub/delphi-webapi.svg?branch=master)](https://travis-ci.org/delphi-hub/delphi-webapi) | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/8ebe27850ffb4139af6280fd1cd6d540)](https://www.codacy.com/app/delphi-hub/delphi-webapi?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=delphi-hub/delphi-webapi&amp;utm_campaign=Badge_Grade)|
11+
| develop | [![Build Status](https://travis-ci.org/delphi-hub/delphi-webapi.svg?branch=develop)](https://travis-ci.org/delphi-hub/delphi-webapi) | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/8ebe27850ffb4139af6280fd1cd6d540?branch=develop)](https://www.codacy.com/app/delphi-hub/delphi-webapi?branch=develop&amp;utm_source=github.com&amp;utm_medium=referral&amp;utm_content=delphi-hub/delphi-webapi&amp;utm_campaign=Badge_Grade) |
12+
13+
## What is the Delphi Web API?
14+
15+
It is the primary access point to the Delphi system.
16+
17+
## How does it work?
18+
19+
The Delphi Web API communicates with the underlying Elasticsearch database to provide access to data.
20+
21+
## How can I use it?
22+
23+
If you just wish to query the results, maybe the public instance at https://delphi.cs.uni-paderborn.de is the right choice for you.
24+
25+
If you want to run your own infrastructure, you can start the web API
26+
```
27+
sbt run
28+
```
29+
30+
It expects a running instance of elasticsearch on port 9200 on the same machine.
31+
32+
## Community
33+
34+
Feel welcome to join our chatroom on Gitter: [![Join the chat at https://gitter.im/delphi-hub/delphi](https://badges.gitter.im/delphi-hub/delphi.svg)](https://gitter.im/delphi-hub/delphi?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
35+
36+
37+
## Contributing
38+
39+
Contributions are *very* welcome!
40+
41+
Before contributing, please read our [Code of Conduct](CODE_OF_CONDUCT.md).
42+
43+
Refer to the [Contribution Guide](CONTRIBUTING.md) for details about the workflow.
44+
We use Pull Requests to collect contributions. Especially look out for "help wanted" issues
45+
[![GitHub issues by-label](https://img.shields.io/github/issues/delphi-hub/delphi-webapi/help%20wanted.svg)](https://github.com/delphi-hub/delphi-webapi/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22),
46+
but feel free to work on other issues as well.
47+
You can ask for clarification in the issues directly, or use our Gitter
48+
chat for a more interactive experience.
49+
50+
[![GitHub issues](https://img.shields.io/github/issues/delphi-hub/delphi-webapi.svg)](https://github.com/delphi-hub/delphi-webapi/issues)
51+
52+
53+
## License
54+
55+
The Delphi Web API is open source and available under Apache 2 License.
56+
57+
[![GitHub license](https://img.shields.io/github/license/delphi-hub/delphi-webapi.svg)](https://github.com/delphi-hub/delphi-webapi/blob/master/LICENSE)

build.sbt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,33 @@ scalaVersion := "2.12.4"
66

77
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.4"
88
libraryDependencies += "com.typesafe.akka" %% "akka-http" % "10.0.11"
9+
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.5.12"
10+
libraryDependencies += "com.typesafe.akka" %% "akka-http-spray-json" % "10.1.1"
11+
libraryDependencies += "io.spray" %% "spray-json" % "1.3.3"
12+
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.4"
13+
libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.4"
14+
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.4" % "test"
15+
16+
val elastic4sVersion = "6.3.0"
17+
libraryDependencies ++= Seq(
18+
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
19+
20+
// for the http client
21+
"com.sksamuel.elastic4s" %% "elastic4s-http" % elastic4sVersion,
22+
23+
// if you want to use reactive streams
24+
"com.sksamuel.elastic4s" %% "elastic4s-http-streams" % elastic4sVersion,
25+
26+
// testing
27+
"com.sksamuel.elastic4s" %% "elastic4s-testkit" % elastic4sVersion % "test",
28+
"com.sksamuel.elastic4s" %% "elastic4s-embedded" % elastic4sVersion % "test"
29+
)
30+
931

1032
lazy val webapi = (project in file(".")).
1133
enablePlugins(JavaAppPackaging).
1234
enablePlugins(DockerPlugin).
35+
enablePlugins(ScalastylePlugin).
1336
settings (
1437
dockerBaseImage := "openjdk:jre-alpine"
1538
).
@@ -19,3 +42,5 @@ lazy val webapi = (project in file(".")).
1942
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
2043
buildInfoPackage := "de.upb.cs.swt.delphi.webapi"
2144
)
45+
46+
scalastyleConfig := baseDirectory.value / "project" / "scalastyle-config.xml"

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.17
1+
sbt.version=1.1.1

project/buildinfo.sbt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)