https://github.com/drinkwater-io/drinkwater-java
simple application builder service
https://github.com/drinkwater-io/drinkwater-java
camel framework java microservices new
Last synced: 3 months ago
JSON representation
simple application builder service
- Host: GitHub
- URL: https://github.com/drinkwater-io/drinkwater-java
- Owner: drinkwater-io
- License: apache-2.0
- Created: 2016-12-29T13:20:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T13:30:13.000Z (over 8 years ago)
- Last Synced: 2025-07-04T21:04:30.671Z (9 months ago)
- Topics: camel, framework, java, microservices, new
- Language: Java
- Homepage: https://github.com/drinkwater-io/drinkwater-java
- Size: 668 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/drinkwater-io/drinkwater-java)
# DrinkWater
layer on top of camel to create and manage (micro)services easily
### features:
- not production ready
- api still changing
- create and test services fast
### Get Started
from getstarted [example](https://github.com/drinkwater-io/drinkwater-java/tree/master/examples)
with maven
```xml
io.drinkwater
drinkwater-core
${drinkwater.current.version}
```
create a service (needs an interface for now)
```java
public interface ISimpleService {
String ping(String message);
}
```
implement the interface
```java
public class SimpleServiceImpl implements ISimpleService {
public String prefix;
@Override
public String ping(String message) {
return String.format("%s %s", prefix, message);
}
}
```
configure the app
```java
public class App extends ApplicationBuilder{
public static void main(String[] args) throws Exception {
Drinkwater.run(App.class);
}
@Override
public void configure() {
addService("test", ISimpleService.class, SimpleServiceImpl.class).asRest();
}
}
```
add a properties file (drinkwater-application.properties) with the following content
```
test.prefix=pong
```
and run it.
next open link **http://localhost:????/test/ping?message=hello**
you should receive **"pong hello"**
### Next