Skip to content

An intellectual (HTTP/HTTPS) web server with support for server side templating (Crush, Apache Velocity and JTwig)

License

Notifications You must be signed in to change notification settings

Citymonstret/Kvantum

Repository files navigation

Kvantum

Kvantum

NOTE: The project is currently still in development. Beware - Things will break.

Kvantum is a OSS project maintained by Alexander Söderberg. Kvantum is a web server and web framework written in Java. For support, submit a new issue or email sauilitired@gmail.com

Progress

You can see the current progress here along with W.I.P and TODO's.

Project Stats

Travis CI: Build Status

Description

Kvantum is a web server and framework written in Java, on top of the Netty application framework. Kvantum is written with two main goals in mind: a) to be able to run as a standalone web server, with no extra programming needed, and b) to offer an extensive API, allowing developers to extend Kvantum to fit their needs exactly. The user can choose to either run Kvantum on its own, to create Kvantum extensions (addons) or to ship their application with Kvantum embedded in it.

Kvantum is written for HTTP/HTTPS 1.1 and aims to implement the entire protocol. The web server is written to be non-blocking, and to greatly favour caching over I/O operations.

The Kvantum framework includes many specially written components, that will drastically reduce end user boilerplate code. This includes (but is not limited to): account management, database connections (MySQL, SQLite, MongoDB), template engines (Apache Velocity, JTwig, Crush), REST utilities, search service utilities, etc.

Kvantum can be used as a standalone server for static content, natively serving:

  • HTML
  • CSS
  • JavaScript
  • (Downloading of...) PDF, TXT & ZIP
  • Images (PNG, ICO, SVG)
  • Webjars resources as static files
  • ... and the system can also be extended programmatically, both by extending the application itself, by scripts and by plugins.

Examples

Code examples can be found at this link. There are also some sample projects (may not be up to date): Forum, KvantumBlog, Foton and KvantumBukkit.

Prerequisites

Kvantum only requires Java 10 (or later versions) to be installed on your system.

How to run

Note: These are the instructions to run Kvantum as a standalone web server. If you instead want to use the framework, please refer to the wiki

The easiest way to run Kvantum as a standalone web server is to use a pre-compiled Implementation jar file. These can be found in releases. Simply download the jar file into a directory, and then run it using:

(older versions):

java -jar /path/to/Implementation-all.jar

(newer versions):

java -jar /path/to/Standalone-all.jar

However, if you'd rather call the main method directly, then it is located in KvantumMain

Wiki/Information

More information can be found in our wiki

Development

Code Style

If you are planning to commit any changes to the project, it would be highly appreciated if you were to follow the project code style conventions. To make this easier we have provided settings that can be imported into your IDE.

Eclipse: Window > Preferences > Java > Code Style > Formatter Press Import and select ...path/to/project/code_style.xml

IntelliJ: File > Settings > Editor > Code Style. Next to "Scheme" there is a cog wheel, press that and then Import Scheme > Eclipse XML Profile and then select ..path/to/project/code_style.xml

Maven

<!-- CURRENTLY DOWN! NEW REPOSITORY COMING SOON -->

<repositories>
    <repository>
        <id>Incendo</id>
        <url>https://incendo.org/mvn/repository/maven-releases/</url>
    </repository>
</repositories>

<dependency>
    <groupId>xyz.kvantum</groupId>
    <artifactId>Implementation</artifactId>
    <version>1.3</version>
</dependency>

Building from scratch

On *nix:

$ git clone git://github.com/IntellectualSites/Kvantum.git
$ cd Kvantum
$ chmod a+x ./gradlew
$ ./gradlew :build

Windows:

$ git clone git://github.com/IntellectualSites/Kvantum.git
$ cd Kvantum
$ ./gradlew.bat :build

About

An intellectual (HTTP/HTTPS) web server with support for server side templating (Crush, Apache Velocity and JTwig)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages