X Tutup
Skip to content

ws-java/actframework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACT Framework

The reason I create ACT Framework is because I was so in fond of PlayFramework1 V1.x and I want to continue along the road paved by the great product. In essence I need an expressive, Java developer friendly MVC framework, and that comes with ACT Framework.

Controller sample code:

    @GetAction("/")
    public Result home() {
        return render();
    }

    @GetAction({"/hello", "/hi"})
    public String sayHello() {
        return "Hello Act!";
    }

    @GetAction("/bye")
    public void byePlayAndSpring() {
        text("bye Play and Spring!!");
    }

    @GetAction("/greeting")
    public void greeting(String who, int age) {
        render(who, age);
    }

    @GetAction("/product/{catalog}/{prod}/price")
    public Result price(String catalog, String prod) {
        int n = _.random(C.range(100, 400));
        String price = n + ".99";
        return render(catalog, prod, price);
    }

There are a couple of ACT Demo applications could be found at https://github.com/actframework/act-demo-apps, these apps demonstrate the following features of ACT Framework:

All the demo apps shall be able to run directly by cd path/to/app and mvn clean compile exec:exec. Then you can open your browser and navigate to http://localhost:5460. The demo apps are using default view based on Rythm, which is my another open source contribution.

At the moment ACT framework is still under development and not ready for product use. But you are welcome to give it a try and send me feedback by raising issues or send email to actframework@googlegroup.com. 中国的朋友可以申请加入QQ群:283919975.

You can track ACT Framework development progress at https://trello.com/b/iMsldsST/actframework-0-1

Happy coding!

About

An easy to use Java MVC server stack

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Java 98.9%
  • Other 1.1%
X Tutup