From 927c9aae8b0e28b39f0ee913d9bf53a3c0687e43 Mon Sep 17 00:00:00 2001 From: Ben Beltran Date: Mon, 28 Nov 2016 00:59:52 -0600 Subject: LGTM-1 Create Initial Design Squashed commit of the following: commit 322c92fdfbbef070b171b700d24c6733ac2e0ef9 Author: Ben Beltran Date: Mon Nov 28 00:57:58 2016 -0600 Serve the basic design commit 702077266d36d190a454a2665b7e31c8f64746ac Author: Ben Beltran Date: Mon Nov 28 00:05:03 2016 -0600 Add linter configs commit 4c4dc29c555d44629fae39e5ed8831e304af570a Author: Ben Beltran Date: Sun Nov 27 23:49:07 2016 -0600 Add package.json --- index.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 index.js (limited to 'index.js') diff --git a/index.js b/index.js new file mode 100644 index 0000000..46d4049 --- /dev/null +++ b/index.js @@ -0,0 +1,29 @@ +'use strict'; + +const Config = require('./config/config'); +const Koa = require('koa'); +const KoaStatic = require('koa-static'); + +const internals = {}; + +internals.run = () => { + + internals.app = Koa(); + + internals.app.use(KoaStatic(Config.staticDirectory)); + + console.log(' .'); + console.log(' /'); + console.log(' +-----+'); + console.log(` | o o | - Listening Gladly, Try Me: ${Config.port}`); + console.log(' +-----+'); + console.log(' +---------+'); + console.log(' /| [][] |\\'); + console.log(' || | |'); + console.log(' || | \\c'); + console.log(' ^+---------+'); + console.log(' (.) '); + internals.app.listen(Config.port); +}; + +internals.run(); -- cgit