0.8.10 • Published 8 months ago

@cmmv/express v0.8.10

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Description

CMMV (Contract-Model-Model-View) is a minimalistic and modular framework for building scalable applications in TypeScript. Inspired by modern design patterns, CMMV uses contracts to define the entire application, from ORM entities to REST controllers and WebSocket endpoints, allowing for a highly structured and maintainable codebase.

Legacy Setup (Manual)

If you prefer to set up the project manually, you can still install the necessary modules individually:

$ pnpm add @cmmv/express express body-parser cors express-session helmet uuid

Quick Start

The @cmmv/express module provides an alternative HTTP adapter based on Express, allowing you to use Express middleware and features seamlessly with your CMMV application.

import { Application } from "@cmmv/core";
import { DefaultHTTPModule } from "@cmmv/http";
import { ExpressAdapter } from "@cmmv/express";
import { ViewModule } from "@cmmv/view";

Application.create({
    httpAdapter: ExpressAdapter, // Add the ExpressAdapter here
    wsAdapter: WSAdapter,
    modules: [DefaultHTTPModule],
    services: [...],
    contracts: [...]
});
0.8.10

8 months ago

0.8.9

8 months ago

0.6.20

9 months ago

0.6.19

9 months ago

0.6.18

9 months ago

0.6.17

10 months ago

0.6.16

10 months ago

0.6.15

10 months ago

0.6.14

11 months ago

0.6.13

11 months ago

0.6.9

11 months ago

0.1.0

1 year ago