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.
Start read hunt framework wiki for documents.
git clone https://github.com/huntlabs/hunt-skeleton.git myproject
cd myproject
dub run -v
Open the URL with the browser:
http://localhost:8080/
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!";
}
}
View hunt-skeleton or hunt-examples.
package | version | purpose |
---|---|---|
hunt-trace | 0.2.0 above | Tracing for API requests |
hunt-security | 0.2.0 above | Some core APIs for security |
Note: To support request tracing, you must add these packages to your project:
To support SSL, you must add these packages to your project:
QQ Group: 184183224
Sign in for post a comment
Comments ( 0 )