D语言全栈 Web 框架 hunt framework

码农软件 · 软件分类 · Web框架 · 2019-03-23 22:14:36

软件介绍

Hunt framework

Hunt framework 是一个由 HuntLabs 推出使用 Dlang 语言开发的全栈 web 框架,易用性和完整性都贴近于 Laravel / Django / Spring boot 等主流框架的设计,优势主要体现在部署方面,不需要搭建运行环境就可开启 web 服务。而且 D 语言自身是一个性能极高的编译型语言,我们可以基于 hunt framework 非常简单的开发出高性能的 Web 服务。

文档

Start read hunt framework wiki for documents.

项目创建

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

在浏览器打开下述 URL:

http://localhost:8080/

Router 配置

config/routes

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

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

控制器案例

module app.controller.index;

import hunt.framework;

class IndexController : Controller
{
    mixin MakeController;

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

请看 hunt-skeleton 或 hunt-examples.

组件

  1. Routing

  2. Caching

  3. Middleware

  4. Configuration

  5. Validation

  6. Entity & Repository

  7. Form

  8. Template Engine

  9. Task Worker

  10. Security

  11. WebSocket (with STOMP)

本文地址:https://codercto.com/soft/d/2012.html

深入理解C指针

深入理解C指针

[美] Richard Reese / 陈晓亮 / 人民邮电出版社 / 2014-2 / 45.00

深入理解C指针和内存管理,提升编程效率!这是一本实战型图书,通过它,读者可以掌握指针动态操控内存的机制、对数据结构的增强支持,以及访问硬件等技术。本书详细阐述了如何在数组、字符串、结构体和函数中使用指针,同时演示了相应的内存模型及其对指针使用的影响。 指针为C语言带来了强大的功能和灵活性,却也是C语言中最难啃的一块“骨头”。本书旨在帮读者透彻理解指针,解决这个老大难问题。不论是初学者还是经验......一起来看看 《深入理解C指针》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

html转js在线工具
html转js在线工具

html转js在线工具