0.0.1-beta.0 • Published 4 years ago
curli-core v0.0.1-beta.0
curli-core
The core for a library to handle modules on the top of Express and build a complete custom framework.
Motivation
Create a framework that doesn't want a wedding, just a hookup
Doesn't matter if you want MVC, Spaghetti Code or CQRS, you can do it.
Easy to extend
Build it using modules and modules definers.
Installation
Install by npm
npm install --save curli-core
Basic Usage
import {
CurliApplication,
BootersModulesDefiner,
ServicesModulesDefiner,
ConfigModulesDefiner
} from 'curli-core';
import {AppModule} from "./App/Infrastructure/AppModule";
import {UserModule} from "./Users/Infrastructure/UserModule";
import {ListModule} from "./Lists/Infrastructure/ListModule";
const app = new CurliApplication({
port: 3000,
environment: 'local'
});
app.addModulesDefiner(new BootersModulesDefiner(app));
app.addModulesDefiner(new ServicesModulesDefiner(app));
app.addModulesDefiner(new ConfigModulesDefiner(app));
app.addModule(new AppModule());
app.addModule(new UserModule());
app.addModule(new ListModule());
app.startApp();
app.initServer(function (url: string) {
console.log(`Server is running at ${url}`);
});
Commands
npm run build
: Build the project (Curli framework).npm run build:clean
: Delete first the dist folder and build it.npm run clean
: Delete the dist folder.npm run test
: Execute the tests.npm run test:coverage
: Execute the tests and calculate the coverage.npm run lint
: Check the code using the rules in .eslintre.jsnpm run lint:fix
: Check the code and try to fix it.
License
MIT
0.0.1-beta.11
4 years ago
0.0.1-beta.10
4 years ago
0.0.1-beta.9
4 years ago
0.0.1-beta.8
4 years ago
0.0.1-beta.7
4 years ago
0.0.1-beta.6
4 years ago
0.0.1-beta.5
4 years ago
0.0.1-beta.4
4 years ago
0.0.1-beta.1.1
4 years ago
0.0.1-beta.3
4 years ago
0.0.1-beta.2
4 years ago
0.0.1-beta.1
4 years ago
0.0.1-beta.0
4 years ago