summaryrefslogtreecommitdiffstats
path: root/backend/src/index.js
blob: df5eb294a55a21b757f3858d742600546717b255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const createServer = require('./createServer');

const server = createServer();

server.express.use((req, res, next, db) => {
  console.log('MIDDLEWARE!');
  next();
});

server.start({ port: 4444 }, deets => {
  console.log(`Server is running on http://localhost:${deets.port}`);
});

// overwrite console.log
const chalk = require('chalk');

// global.console.l = (...butta) => console.log(chalk.bold.yellow(...butta));
global.console.l = console.log;