Skip to content

Instantly share code, notes, and snippets.

View birante's full-sized avatar
🎯
Focusing

Birante SY birante

🎯
Focusing
View GitHub Profile
/*
|--------------------------------------------------------------------------
| Http server
|--------------------------------------------------------------------------
|
| This file bootstrap Adonisjs to start the HTTP server. You are free to
| customize the process of booting the http server.
|
| """ Loading ace commands """
| At times you may want to load ace commands when starting the HTTP server.
@birante
birante / database.js
Created July 9, 2018 13:54 — forked from hagemann/database.js
Promisified MySQL middleware for Node.js
const util = require('util')
const mysql = require('mysql')
const pool = mysql.createPool({
connectionLimit: 10,
host: 'localhost',
user: 'root',
password: 'password',
database: 'my_database'
})