ashwin74268 / StubbornJava

Unconventional Java code for building web servers / services without a framework. Think dropwizard but as a seed project instead of a framework. If this project had a theme it would be break the rules but be mindful of your decisions.

Home Page:https://www.stubbornjava.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Release

StubbornJava

https://www.stubbornjava.com/

This is very much a work in progress and in the early stages. No code will be pushed to maven or supported in any way currently. Feel free to clone and install locally. Currently the website itself is not open souced but that is the eventual plan. The website is built using all the methods described on the site and in the examples. There is no backing blog framework.

Suggest a Topic

Check out issues to suggest topics, bug fixes, errors, or vote on issues. Reactions / comments may influence the order topics are added but no guarantees. Several topics will not be accepted here such as larger frameworks (Spring, Play, Jersey ...) as well as dependency injection. We will be more focused on rolling things yourself and solving practical problems. The coding style here may not fit with the norm but it should be very easy to convert any of the classes to be DI friendly.

Getting Started

A guide for building your own minimal embedded Java web server. A simple in order intro to a lot of uses cases for simple web development.

Libraries

SLF4J and Logback for Logging

SLF4J is fairly standard and we chose to use Logback as our underlying implementation.

Typesafe Config For Configuration

Typesafe config is a clean lightweight immutable configuration library. It offers several formats such as .properties, .yml, .json as well as a human friendly json super set. It handles configuration inheritance, includes, data types (string, boolean, int, long, double, durations, arrays, ...), variabe substitution and many more features.

Jackson for JSON

Embedded Undertow Web Server

Undertow is a very fast low level non blocking web server written in Java. It is very lightweight and has a very clean API that should be relatively easy for anyone who knows HTTP to pick up. Most custom code will be in the form of an HttpHandler which is a simple interface that can be used in a variety of ways.

OkHttp for HTTP Client

HikariCP for JDBC Connection Pooling

HikariCP is a very fast lightweight Java connection pool. The API and overall codebase is relatively small (A good thing) and highly optimized. It also does not cut corners for performance like many other Java connection pool implementations.

Sites Built With This Method

Tools

About

Unconventional Java code for building web servers / services without a framework. Think dropwizard but as a seed project instead of a framework. If this project had a theme it would be break the rules but be mindful of your decisions.

https://www.stubbornjava.com


Languages

Language:Java 52.1%Language:HTML 44.3%Language:JavaScript 1.8%Language:CSS 1.7%Language:Shell 0.1%