1
- # amaya-core [ ![ maven-central] ( https://img.shields.io/maven-central/v/io.github.amayaframework/amaya-core?color=blue )] ( https://repo1.maven.org/maven2/io/github/amayaframework/amaya-core/ )
1
+ # amaya-core [ ![ maven-central] ( https://img.shields.io/maven-central/v/io.github.amayaframework/amaya-core/2.0.0 ?color=blue )] ( https://repo1.maven.org/maven2/io/github/amayaframework/amaya-core/2.0.0 )
2
2
3
- Placeholder
3
+ An amaya framework module that implements a web application and its infrastructure.
4
4
5
5
## Getting Started
6
6
7
7
To install it, you will need:
8
8
9
9
* Java 11+
10
10
* Maven/Gradle
11
- * Some Lib
11
+ * Any amaya-server implementation (for example, [ amaya-jetty ] ( https://github.com/AmayaFramework/amaya-jetty ) )
12
12
13
13
## Installing
14
14
15
15
### Gradle dependency
16
16
17
17
``` Groovy
18
18
dependencies {
19
- implementation group: 'io.github.amayaframework', name: 'amaya-core', version: 'LATEST '
19
+ implementation group: 'io.github.amayaframework', name: 'amaya-core', version: '2.0.0 '
20
20
}
21
21
```
22
22
@@ -26,18 +26,46 @@ dependencies {
26
26
<dependency>
27
27
<groupId>io.github.amayaframework</groupId>
28
28
<artifactId>amaya-core</artifactId>
29
- <version>LATEST </version>
29
+ <version>2.0.0 </version>
30
30
</dependency>
31
31
```
32
32
33
33
## Usage example
34
34
35
- Placeholder
35
+ ### Hello, world
36
+
37
+ <p >Gradle dependency section:</p >
38
+
39
+ ``` Gradle
40
+ dependencies {
41
+ implementation group: 'io.github.amayaframework', name: 'amaya-core', version: '2.0.0'
42
+ implementation group: 'io.github.amayaframework', name: 'amaya-jetty', version: '1.0.0'
43
+ }
44
+ ```
45
+
46
+ <p >Java code:</p >
47
+
48
+ ``` Java
49
+ import io.github.amayaframework.core.WebBuilders ;
50
+ import io.github.amayaframework.jetty.JettyServerFactory ;
51
+
52
+ public class Main {
53
+ public static void main (String [] args ) throws Throwable {
54
+ var builder = WebBuilders . create();
55
+ var app = builder
56
+ .setServerFactory(new JettyServerFactory ())
57
+ .build();
58
+ app. bind(8080 );
59
+ app. run(ctx - > System . out. println(" Hello, world" ));
60
+ }
61
+ }
62
+ ```
36
63
37
64
## Built With
38
65
39
66
* [ Gradle] ( https://gradle.org ) - Dependency management
40
- * [ Black Magic] ( ) - Black magic
67
+ * [ jfunc] ( https://github.com/RomanQed/jfunc ) - Functional interfaces
68
+ * [ jakarta.servlet] ( https://projects.eclipse.org/projects/ee4j.servlet ) - Servlet API
41
69
42
70
## Authors
43
71
@@ -53,4 +81,4 @@ This project is licensed under the Apache License Version 2.0 - see the [LICENSE
53
81
54
82
## Acknowledgments
55
83
56
- Thanks to everyone who was interested in this framework, gave advices and suggested ideas.
84
+ Thanks to everyone who was interested in this framework, gave advices and suggested ideas.
0 commit comments