core-mvc
v2.7.0
Published
Simple but powerful MVC framework for NodeJS.
Downloads
489
Readme
Setup
Getting a fully operational system:
npm install core-mvc
server.ts
import 'reflect-metadata';
import { Application } from 'core-mvc/application';
import { ApiServer } from 'core-mvc/apiServer';
import typeorm from 'core-mvc/typeorm';
import User from '../user/entities/User';
import './controllers';
(async () => {
const application = new Application();
application.addContainerModule(typeorm);
const { container } = await application.start();
const server = new ApiServer(User);
server.start();
})().catch(error => {
throw error;
});