text: const express = require('express');
  const app = express();
  
  // universal constants
  const sq = require('sqlite3').verbose();
  const bodyParser = require('body-parser');
  
  app.set('view engine', 'ejs');
  app.use(express.static(__dirname + '/public'));
  
  app.use(bodyParser.json());
  app.use(bodyParser.urlencoded({ extended : false }));
  
  app.use((req, res, next) => {
  	res.header('Access-Control-Allow-Origin', '*');
  	res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept');
  	next();
  });
  
  // front-end routing
  require(__dirname + '/routing.js')(app);
  
  // back-end registration
  const db = new sq.Database('./userdata.db', sq.OPEN_READWRITE);
  require(__dirname + '/libs/users.js')(app, db);
  
  let config;
  try {
  	config = require(__dirname + '/config.json');
  } catch (err) {
  	throw new Error('Check to see if config file is valid!');
  }
  
  // goes outside out db connection
  app.listen(1200, () => {
  	console.log('Server started');
  });
  