An amaya framework module that implements a web application and its infrastructure.
To install it, you will need:
- Java 11+
- Maven/Gradle
- Any amaya-server implementation (for example, amaya-jetty)
dependencies {
implementation group: 'io.github.amayaframework', name: 'amaya-core', version: '2.0.0'
}
<dependency>
<groupId>io.github.amayaframework</groupId>
<artifactId>amaya-core</artifactId>
<version>2.0.0</version>
</dependency>
Gradle dependency section:
dependencies {
implementation group: 'io.github.amayaframework', name: 'amaya-core', version: '2.0.0'
implementation group: 'io.github.amayaframework', name: 'amaya-jetty', version: '1.0.0'
}
Java code:
import io.github.amayaframework.core.WebBuilders;
import io.github.amayaframework.jetty.JettyServerFactory;
public class Main {
public static void main(String[] args) throws Throwable {
var builder = WebBuilders.create();
var app = builder
.setServerFactory(new JettyServerFactory())
.build();
app.bind(8080);
app.run(ctx -> ctx.getResponse().getWriter().write("Hello, I am Amaya"));
}
}
- Gradle - Dependency management
- jfunc - Functional interfaces
- jakarta.servlet - Servlet API
- RomanQed - Main work
- max0000402 - Technical advices and ideas for features
See also the list of contributors who participated in this project.
This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details
Thanks to everyone who was interested in this framework, gave advices and suggested ideas.