Skip to content
Skadi MVC Web Framework D language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/app_skeleton
source/skadi
.gitignore
LICENSE
README.md
dub.json
dub.selections.json
libskadi-d.a

README.md

Skadi.d

Skadi MVC Web Framework D language on top of Vibe.d


More documentation to come.

Still in a early stage.

Installation

OS X

brew install dub
brew install libevent
brew install mongodb

Run

  git clone https://github.com/Faianca/Skadi.d.git
  cd Skadi.d
  dub

Config

At the source/config folder you have a few config files.

Config.d
  • Configure Port
Namespaces.d
  • To register a new bundle
enum Namespace[] namespaces = [
      Namespace("PostBundle", [
          Controller("PostController", "/")
      ]),
];

Application/PostBundle/Controller/PostController.d with a prefix route match "/"

enum Namespace[] namespaces = [
      Namespace("ApiBundle", [
          Controller("PostController", "/api/post"),
          Controller("UserController", "/api/user")
      ]),
];
Application/ApiBundle/Controller/PostController.d  with a prefix route match "/api/post"

Application/ApiBundle/Controller/UserController.d  with a prefix route match "/api/user"
Services.d
  • To register new services

To inject them

	@Inject {
        public MongoService mongoService;
        public TestService testService;
   }

TODO LIST

At the moment working actively on a form builder for Diet templates.

  1. Event Dispatcher
  2. Model | ORM | ODM
  3. Better router
  4. Vendor strategy
  5. Logger
  6. Api Helper
You can’t perform that action at this time.