All Projects → pcdv → jflask

pcdv / jflask

Licence: Apache-2.0 license
Flask-inspired web micro-framework for Java (deprecated)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to jflask

recurse
Qt based micro web framework with middleware design
Stars: ✭ 19 (+5.56%)
Mutual labels:  micro-framework, web-framework
Jooby
The modular web framework for Java and Kotlin
Stars: ✭ 1,309 (+7172.22%)
Mutual labels:  micro-framework, web-framework
Echo
High performance, minimalist Go web framework
Stars: ✭ 21,297 (+118216.67%)
Mutual labels:  micro-framework, web-framework
Giraffe
Giraffe is an F# micro web framework for building rich web applications. It has been heavily inspired and is similar to Suave, but has been specifically designed with ASP.NET Core in mind and can be plugged into the ASP.NET Core pipeline via middleware. Giraffe applications are composed of so called HttpHandler functions which can be thought of a mixture of Suave's WebParts and ASP.NET Core's middleware.
Stars: ✭ 1,703 (+9361.11%)
Mutual labels:  micro-framework, web-framework
Klein
werkzeug + twisted.web
Stars: ✭ 770 (+4177.78%)
Mutual labels:  micro-framework, web-framework
Falco
A functional-first toolkit for building brilliant ASP.NET Core applications using F#.
Stars: ✭ 214 (+1088.89%)
Mutual labels:  micro-framework, web-framework
commix
Micro-framework for data-driven composable system architectures
Stars: ✭ 46 (+155.56%)
Mutual labels:  micro-framework
ult
The Ultimate Dev Stack
Stars: ✭ 54 (+200%)
Mutual labels:  web-framework
command-pal
The hackable command palette for the web, inspired by Visual Studio Code.
Stars: ✭ 32 (+77.78%)
Mutual labels:  micro-framework
Fuga-Framework
Web Framework for Java
Stars: ✭ 15 (-16.67%)
Mutual labels:  web-framework
framework
The Peak Framework
Stars: ✭ 20 (+11.11%)
Mutual labels:  web-framework
endpoints
Lightweight REST api backend framework that automatically maps urls to python modules and classes
Stars: ✭ 30 (+66.67%)
Mutual labels:  web-framework
erdiko
Micro MVC Framework
Stars: ✭ 36 (+100%)
Mutual labels:  micro-framework
adrenaline
A PSR-7 micro framework built on top of the Adroit middleware to speed up your development ;)
Stars: ✭ 31 (+72.22%)
Mutual labels:  micro-framework
bay
The framework
Stars: ✭ 20 (+11.11%)
Mutual labels:  web-framework
alef-component
Alef Component for Modern Web Apps.
Stars: ✭ 46 (+155.56%)
Mutual labels:  web-framework
aqua
A minimal and fast 🏃 web framework for Deno
Stars: ✭ 219 (+1116.67%)
Mutual labels:  web-framework
Polyel-Framework
⚡️ Voltis Core: A PHP framework based on Swoole from the ground up
Stars: ✭ 22 (+22.22%)
Mutual labels:  web-framework
waspy
WASP framework for Python
Stars: ✭ 43 (+138.89%)
Mutual labels:  micro-framework
stirfry
StirFry is a self contained and lightweight web framework for nodejs
Stars: ✭ 24 (+33.33%)
Mutual labels:  web-framework

JFlask

JFlask is now deprecated. See flak instead.

JFlask is a micro web framework for Java inspired by Python Flask.

Here is an example of what a small JFlask web app looks like.

package samples;

import net.jflask.App;
import net.jflask.Route;

package samples;

import net.jflask.App;
import net.jflask.Route;

public class WebApp {

  public static void main(String[] args) throws Exception {
    App app = new App(Integer.getInteger("port", 8080));

    // NB: it is cleaner to define route handler in dedicated classes
    app.scan(new Object() {
      @Route("/hello/:name")
      public String hello(String name) {
        return "Hello " + name;
      }
    });

    // static resources are served from local file system or directly
    // from the web-app jar
    app.servePath("/", "app/");

    app.start();
    System.out.println("Listening on http://0.0.0.0:" + app.getPort());
  }
}

For more examples, look at the junits

Features

  • Minimal size (around 28kB)
  • No external dependencies (it uses HTTP server embedded in the JRE)
  • Flask-like request routing (with method annotations)
  • Easy standalone jar generation (executable withjava -jar mywebapp.jar)

Requirements

  • JRE 7 (or later)

Installation

JFlask is available on jcenter.

repositories {  
   jcenter()  
}

dependencies {
  compile "net.jflask:jflask:0.29"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].