]>
Commit | Line | Data |
---|---|---|
322c92fd BB |
1 | 'use strict'; |
2 | ||
3 | const Config = require('./config/config'); | |
4 | const Koa = require('koa'); | |
5 | const KoaStatic = require('koa-static'); | |
6 | ||
7 | const internals = {}; | |
8 | ||
9 | internals.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 | ||
29 | internals.run(); |