9

RIFE2 Framework : Full-stack, no-declaration, framework to quickly and effortles...

 2 years ago
source link: https://rife2.com/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Full-stack, no-declaration, framework to quickly and effortlessly create web applications with modern Java.

logo.svg
A full-stack framework to effortlessly
create web applications with modern Java

Welcome

RIFE2 is built on the foundations of the original RIFE framework that was popular from 2002-2010. Since then, the world and Java have changed and many of the original RIFE APIs could finally be replaced with pure Java, no-XML, no-YAML, leaving only type-safe expressive code.

RIFE2 preserves most of the original features and adds new ones, for a fraction of the footprint and with even greater developer productivity than before. RIFE2 is created by Geert Bevin, one of the first Java Champions and speaker at many Java conferences.

Follow Geert on Mastodon     Join Geert on Discord

Quickstart

Fully Functional Web Application

import rife.engine.*;

public class HelloWorld extends Site {
    public void setup() {
        get("/hello", c -> c.print("Hello World"));
    }

    public static void main(String[] args) {
        new Server().start(new HelloWorld());
    }
}

Out-of-Container Test

import rife.test.MockConversation;

class HelloTest {
    @Test void verifyHelloWorld() {
        var m = new MockConversation(new HelloWorld());
        assertEquals("Hello World",
                     m.doRequest("/hello").getText());
    }
}

Run It!

./gradlew run

View It!

http://localhost:8080/hello

Just The Beginning

While the example above is a fully functional web application, it barely scratches the surface of what RIFE2 is capable of. The full stack design of RIFE2 provides smart integrations across layers, focusing on pragmatic decisions that prioritize developer productivity and code maintainability.

RIFE2's full stack provides the following features: web application engine, web continuations, out-of-container web testing, bidirectional template engine, database abstraction, SQL query builders, data validation, form building, meta-data constraints, authentication, task scheduler, resource abstraction, and more ...

Read the documentation

Find Out More

RIFE2's source code, community and issues can be found on GitHub:
https://github.com/gbevin/rife2


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK