Skip to content

leibale/core-mvc

 
 

Repository files navigation

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;
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.4%
  • Shell 0.6%