This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mysql = require("mysql"); | |
// Configure your logger here | |
var logger = require("../utils/logger"); | |
// Add a properties file here with the configurations | |
// For properties file format visit https://github.com/steveukx/properties | |
var properties = require('properties-reader')('properties.properties'); | |
function getConnection() { | |
var connection = mysql.createConnection({ | |
host: properties.get('mysql.host'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EventEmitter = require("events").EventEmitter; | |
class Pizza extends EventEmitter { | |
constructor(size = 1) { | |
super(); | |
this.ovenTime = this._ovenTime(size); | |
this.maxIngredients = this._maxIngredients(size); | |
this.ingredients = []; | |
this.timeToReleasePizza = 5; | |
} |