-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathserver.js
26 lines (23 loc) · 2.09 KB
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const app = require('./app');
/* eslint-disable import/no-extraneous-dependencies */
const chalk = require('chalk');
/* eslint-enable import/no-extraneous-dependencies */
// With the express server and routes defined, we can start to listen for requests.
const port = process.env.PORT || 4000;
app.listen(port);
// Show Awesome Image Of Soho
/* eslint-disable no-console */
console.log(chalk.gray(' . . ') + chalk.blue('|') + chalk.gray(' . . . '));
console.log(chalk.gray(' * . ') + chalk.blue('|') + chalk.gray(' . . '));
console.log(chalk.gray(' . ') + chalk.blue('/-\\') + chalk.gray(' . . . '));
console.log(chalk.gray(' . . . ') + chalk.blue('|"""|') + chalk.gray(' ') + chalk.blue(':') + chalk.gray(' . '));
console.log(chalk.gray(' . ') + chalk.blue('/"""""\\') + chalk.gray(' . * ') + chalk.blue('|>.') + chalk.gray(' '));
console.log(chalk.gray(' ') + chalk.blue('|') + chalk.yellow(' # # # ') + chalk.blue('|') + chalk.gray(' . ') + chalk.blue('/\\| ___ '));
console.log(chalk.blue(' __ ___ ___') + chalk.gray(' . ') + chalk.blue('|') + chalk.yellow('# # # #') + chalk.blue('| ___ ___/<>\\ |:::|'));
console.log(chalk.blue(' / ""| __|~~| |""| |') + chalk.yellow('# # # #') + chalk.blue('||"""| __|"""|^^| |:::|'));
console.log(chalk.blue(' /""""| |::|""|~~~~||_____ |') + chalk.yellow('# # # #') + chalk.blue('||"""|-|::|"""|""|_| |'));
console.log(chalk.blue(' |""""| |::|""|""""|:::::| |') + chalk.yellow('# # # #') + chalk.blue('||"""|t|::|"""|""|"""""|'));
console.log(chalk.blue(' |""""|_| |""|""""|:::::| |') + chalk.yellow('# # # #') + chalk.blue('||"""|||::|"""|""""""""|'));
console.log(chalk.blue(' |""""|::::|""|""""|:::::| |') + chalk.yellow('# # # #') + chalk.blue('||"""|||::|"""|""""""""|'));
console.log('Soho server is running at http://localhost:%s/. Press Ctrl+C to stop.', port);
/* eslint-enable no-console */