This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
tstatic/src/index.ts

13 lines
316 B
TypeScript
Raw Normal View History

2017-02-17 09:24:29 +00:00
import { docopt } from 'docopt';
import createServer from './server';
import getArgs from './cli';
2017-02-17 09:24:29 +00:00
2017-02-17 21:22:38 +00:00
console.log("Starting Server...");
2017-02-17 09:24:29 +00:00
2017-02-17 21:22:38 +00:00
const ARGS = getArgs();
const app = createServer(ARGS);
const server = app.listen(ARGS.port, function () {
2017-02-17 09:24:29 +00:00
console.log("Server started on port " + server.address().port);
});