Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/AmayaFramework/amaya-core

An amaya framework module that implements a web application and its infrastructure.
https://github.com/AmayaFramework/amaya-core

amaya framework http-framework http-server java java-11 java-17 java-21 java-web-framework microservice servlet web-framework

Last synced: 2 months ago
JSON representation

An amaya framework module that implements a web application and its infrastructure.

Awesome Lists containing this project

README

        

# 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)

An amaya framework module that implements a web application and its infrastructure.

## Getting Started

To install it, you will need:

* Java 11+
* Maven/Gradle
* Any amaya-server implementation (for example, [amaya-jetty](https://github.com/AmayaFramework/amaya-jetty))

## Installing

### Gradle dependency

```Groovy
dependencies {
implementation group: 'io.github.amayaframework', name: 'amaya-core', version: '2.0.0'
}
```

### Maven dependency

```

io.github.amayaframework
amaya-core
2.0.0

```

## Usage example

### Hello, world

Gradle dependency section:

```Gradle
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:

```Java
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"));
}
}
```

## Built With

* [Gradle](https://gradle.org) - Dependency management
* [jfunc](https://github.com/RomanQed/jfunc) - Functional interfaces
* [jakarta.servlet](https://projects.eclipse.org/projects/ee4j.servlet) - Servlet API

## Authors

* [RomanQed](https://github.com/RomanQed) - *Main work*
* [max0000402](https://github.com/max0000402) - *Technical advices and ideas for features*

See also the list of [contributors](https://github.com/AmayaFramework/amaya-core/contributors) who participated
in this project.

## License

This project is licensed under the Apache License Version 2.0 - see the [LICENSE](LICENSE) file for details

## Acknowledgments

Thanks to everyone who was interested in this framework, gave advices and suggested ideas.