https://github.com/tvrzna/pointy
Micro web framework with built-in HTTP server.
https://github.com/tvrzna/pointy
http-server java microservice-framework
Last synced: 5 months ago
JSON representation
Micro web framework with built-in HTTP server.
- Host: GitHub
- URL: https://github.com/tvrzna/pointy
- Owner: tvrzna
- License: mit
- Created: 2020-03-11T12:48:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-30T05:39:13.000Z (almost 5 years ago)
- Last Synced: 2025-07-27T15:21:24.712Z (11 months ago)
- Topics: http-server, java, microservice-framework
- Language: Java
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pointy
[](https://javadoc.io/doc/cz.tvrzna/pointy/0.2.0)
Micro web framework with built-in HTTP server.
## What is pointy good for?
Making of micro-service, that should be server-less, often brings tons of dependencies, that are inadequately large and heavy. Pointy brings simple routing with built-in HTTP server.
## Installation
```xml
cz.tvrzna
pointy
0.2.0
```
## Example
The most simple web server, that listens on http://0.0.0.0:8080/hello-world
```java
package test.project;
import cz.tvrzna.pointy.router.PointyEndpoint;
import cz.tvrzna.pointy.server.PointyServer;
public class PointyExample
{
public static void main(String[] args)
{
PointyServer server = new PointyServer("0.0.0.0", 8080, new PointyEndpoint()
{
@Override
public void onInit()
{
ANY("/hello-world", (httpContext) -> {
httpContext.send("Hello World!");
});
}
});
server.start();
}
}
```