当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
12 Star 42 Fork 6

HuntLabs / hunt-framework
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 3.40 KB
一键复制 编辑 原始数据 按行查看 历史
BitWorld 提交于 2021-02-07 10:59 . Add a link for API

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. Framework

Getting Started

Create a 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
*       /images         staticDir:public/images

Add Controller

module app.controller.index;

import hunt.framework;

class IndexController : Controller
{
    mixin MakeController;

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

For more, see hunt-skeleton or hunt-examples.

Components

Basics

Security

Database

Frontend

Digging Deeper

Resources

Community

D
1
https://gitee.com/huntlabs/hunt-framework.git
git@gitee.com:huntlabs/hunt-framework.git
huntlabs
hunt-framework
hunt-framework
master

搜索帮助