7.21 杭州源创会火热报名中,一起来看看移动开发如何紧跟浪潮?
Watch Star Fork

HuntLabs / huntD

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
Hunt is a high-level dlang Web framework that encourages rapid development and clean, pragmatic design. It lets you build high-performance Web applications quickly and easily. http://www.huntframework.com/
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md 1.35 KB

Build Status

Hunt framework

Hunt is a high-level D Programming Language Web framework that encourages rapid development and clean, pragmatic design. It lets you build high-performance Web applications quickly and easily.

Documents

You can read wiki.

Create project

git clone https://github.com/huntlabs/hunt-skeleton.git myproject
cd myproject
dub run -v

Open the URL with the browser:

http://localhost:8080/

Router config

config/routes

#
# [GET,POST,PUT...]    path    controller.action
#

GET     /               index.index
GET     /users          user.list
POST    /user/login     user.login
*       /public         staticDir:public

Controller example

module app.controller.test;

import hunt;

class TestController : Controller
{
    mixin MakeController;

    @Action
    string hello()
    {
        return "Hello world!";
    }
}

View hunt-skeleton example project source code.

Component based

  1. Routing
  2. Caching
  3. Middleware
  4. Configuration
  5. Validation
  6. Entity
  7. Template

Community

QQ Group: 184183224

Facebook

项目点评 ( 0 )

你可以在登录后,发表评论

11_float_left_people 11_float_left_close