0.0.2 • Published 6 years ago

tnemserver v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

TNEMServer

Server Module with: TypeScript + Node + Express + MongoDB

Install

npm install tnemserver --save

Usage

To start a server with static routing on './public':

const app = require('tnemserver');
const server = app.createServer();

server.httpServer.AddStatic('./public');
server.httpServer.Listen();

To compile TypeScript based on config file:

const app = require('tnemserver');
app.tools.compileTSC('config file');

To compile TypeScript based on config file and watch for any changes:

const app = require('tnemserver');
app.tools.compileTSCW('config file','watch dir');