NodeMVC, The MVC Framework in Node.js
-
Mark is optional (View this file or page with font family 'Consolas'.)
| | \|/ +--------------------+--------------------+ | http request | +--------------------+--------------------+ | | \|/ +--------------------+--------------------+ | *koa/other | +--------------------+--------------------+ | | \|/ +--------------------+--------------------+ | MVC | +--------------------+--------------------+ | | \|/ +--------------------+--------------------+ +-----------------------------------------------------+ | MvcHttpApplication | | | +--------------------+--------------------+ | | | | | \|/ | | | +-------------+-------------+ | \|/ | | MvcControllerHttpHandler | | +--------------------+--------------------+ | +-------------+-------------+ | | *IHttpModule | | | | +--------------------+--------------------+ | \|/ | | | +-------------+-------------+ | +-------------------------------+ | | Controller | | \|/ | | +-------------+-------------+ | +--------------------+--------------------+ | | | | | MvcHttpModule |<---------)----------->| \|/ | +--------------------+--------------------+ | | +-------------+-------------+ | | | | | Action & Model & View | | +-------------------------------+ | +-------------+-------------+ | \|/ | | | | +--------------------+--------------------+ | | \|/ | | *IHttpModule | | | | +--------------------+--------------------+ | +--------------------------+--------------------------+ | | | | | | | \|/ | |<------------------------------+---------------------------------------+ | | \|/ +--------------------+--------------------+ | http response | +--------------------+--------------------+ | | \|/