hunt-framework 2.1.0-rc.3

A high performance full-stack Web framework.


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

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

Start read hunt framework wiki for documents.

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

Controller example

module app.controller.index;

import hunt.framework;

class IndexController : Controller
{
    mixin MakeController;

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

View hunt-skeleton or hunt-examples.

Components

  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)

Additional package dependencies

packageversionpurpose
hunt-entity0.3.1 aboveORM support
hunt-trace0.2.0 aboveTracing for API requests
hunt-security0.2.0 aboveSome core APIs for security

Note: To use ORM, you must add these packages to your project:

  1. hunt-entity

To support request tracing, you must add these packages to your project:

  1. hunt-trace

To support SSL, you must add these packages to your project:

  1. hunt-security
  2. boringssl or openssl

Community

QQ Group: 184183224

Github

Dependencies:
hunt-stomp, hunt-http, hunt-validation, hunt-cache
Versions:
2.1.0-rc.3 2019-Apr-03
2.0.6 2019-Apr-10
2.0.5 2019-Mar-18
1.5.3 2019-Jan-17
~master 2019-Apr-24
Show all 7 versions
Download Stats:
  • 1 downloads today

  • 8 downloads this week

  • 68 downloads this month

  • 371 downloads total

Score:
2.9
Short URL:
hunt-framework.dub.pm