kitesjs / kites

Template-based Web Application Framework
https://kitesjs.github.io/kites
MIT License
53 stars 6 forks source link

Kites Micro Frontend #6

Open vunb opened 5 years ago

vunb commented 5 years ago

Build admin panel as an extension of kites. #kites-admin

First implement will use React?

Extensions have own their controllers and views for micro frontend.

Example:

Extension({
  prefix: 'api/v1',   // api route prefix
  controllers: [
    `./controllers/todo.controller`,
    `./controllers/user.controller`,
  ],
  views: [
    `./pages/user`,
    `./pages/dashboard`
  ]
})
class TodoExtension {}

Output:

vunb commented 5 years ago

A plugin is an extension which implements both server and client side.