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 -vOpen 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
- Routing
- Caching
- Middleware
- Configuration
- Validation
- Entity & Repository
- Form
- Template Engine
- Task Worker
- Security
- Queue
Community
QQ Group: 184183224

