Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

netodevel/Riley

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Riley Framework

Atenção

Esse repositório tem como objetivo criar um framework para aprendizado e praticar TDD e Algoritimos.

Aviso: Comecei o projeto totalmente sem testes e sem seguir nenhuma boa prática, estou começando a restruturar o projeto para seguir o objetivo.

Quick Start

public class RileyApplication {
    public static void main(String[] args) throws Exception {
        new Riley().start();
    }
}

Hello World

public class RileyApplication {
    public static void main(String[] args) throws Exception {
        Riley.getInstance().start();
        get("/index", (ctx) -> json("Hello World"));
    }
}

Other way

public class HelloWorldController {{
    get("/index", (ctx) -> json("hello world"));
    get("/user/{user_id}", (ctx) -> json(ctx.params.get("{user_id}")));
}}

Output

____       ____  _ __              
\ \ \     / __ \(_) /__  __  __    
 \ \ \   / /_/ / / / _ \/ / / /    
 / / /  / _, _/ / /  __/ /_/ /     
/_/_/  /_/ |_/_/_/\___/\__, /      
                      /____/       

[INFO] Starting server...
[INFO] Riley Application started in development on http://localhost:3000
[INFO] Registered Route: GET /index
[INFO] Registered Route: GET /user/{user_id}

About

Criando um framework para fins de aprendizado

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.