nove
v2.0.1
Published
A creative framework for building enterprise applications with TypeScript.
Downloads
32
Readme
Nove
A creative framework for building enterprise applications with TypeScript.
Inspired by Nestjs and routing-controllers.
Installation
npm install nove --save
Quick Start
General, you should create a main app instance, a controller and one method belong to controller for handle request at least. Quick start with a file:
// app.ts
import { Nove, Controller, GET } from 'nove';
@Controller('/')
class MyController {
@GET('/')
async index () {
return { name: 'Jason' };
}
}
const app = new Nove({
controllers: [MyController]
});
app.listen(3000, () => {
console.log('server now at: http://localhost:3000/');
});
Use ts-node
to run typescript directly:
ts-node app.ts
And then visit http://localhost:3000/
with your browser.
LICENSE
Copyright (c) 2017-present, JasonChen (Junyi Chen).