-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e78b494
commit fd71a88
Showing
4 changed files
with
111 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Daikon | ||
|
||
![Daikon](./logo.svg) | ||
|
||
Daikon is a simple and minimal framework for creating web applications in Kotlin with minimal effort. | ||
The main goals are: | ||
* Use a framework easy to test | ||
* Build a simple web application in less then 5 minutes | ||
* Can run multiple instances of HTTP server at the same time | ||
* Deploy application in container, with server start time less than 100ms | ||
|
||
## How to add Daikon to your project | ||
[![](https://jitpack.io/v/daikonweb/daikon.svg)](https://jitpack.io/#daikonweb/daikon) | ||
|
||
### Gradle | ||
- Add JitPack in your root build.gradle at the end of repositories: | ||
``` | ||
repositories { | ||
... | ||
maven { url 'https://jitpack.io' } | ||
} | ||
``` | ||
|
||
- Add the dependency | ||
``` | ||
implementation 'com.github.DaikonWeb:daikon:1.2.4' | ||
``` | ||
|
||
### Maven | ||
- Add the JitPack repository to your build file | ||
``` | ||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
``` | ||
- Add the dependency | ||
``` | ||
<dependency> | ||
<groupId>com.github.DaikonWeb</groupId> | ||
<artifactId>daikon</artifactId> | ||
<version>1.2.3</version> | ||
</dependency> | ||
``` | ||
|
||
## Getting Started | ||
``` | ||
HttpServer() | ||
.get("/foo") { _, res -> res.write("Hello foo") } | ||
.post("/bar") { _, res -> res.write("Bye bar") } | ||
.start().use { | ||
assertThat(get("/foo").text).isEqualTo("Hello foo") | ||
assertThat(post("/bar").text).isEqualTo("Bye bar") | ||
} | ||
``` | ||
|
||
## Resources | ||
* Documentation: https://daikonweb.github.io | ||
* Examples: https://github.com/DaikonWeb/daikon-examples | ||
|
||
## Authors | ||
|
||
* **[Marco Fracassi](https://github.com/fracassi-marco)** | ||
* **[Alessio Coser](https://github.com/AlessioCoser)** | ||
|
||
## License | ||
|
||
This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters