]> git.r.bdr.sh - rbdr/lgtm/blame - index.js
Serve the basic design
[rbdr/lgtm] / index.js
CommitLineData
322c92fd
BB
1'use strict';
2
3const Config = require('./config/config');
4const Koa = require('koa');
5const KoaStatic = require('koa-static');
6
7const internals = {};
8
9internals.run = () => {
10
11 internals.app = Koa();
12
13 internals.app.use(KoaStatic(Config.staticDirectory));
14
15 console.log(' .');
16 console.log(' /');
17 console.log(' +-----+');
18 console.log(` | o o | - Listening Gladly, Try Me: ${Config.port}`);
19 console.log(' +-----+');
20 console.log(' +---------+');
21 console.log(' /| [][] |\\');
22 console.log(' || | |');
23 console.log(' || | \\c');
24 console.log(' ^+---------+');
25 console.log(' (.) ');
26 internals.app.listen(Config.port);
27};
28
29internals.run();