Skip to content
Snippets Groups Projects
Commit 83e45b48 authored by Marc Vachon's avatar Marc Vachon
Browse files

Doc + config params

parent 5a61975f
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
/* Connection to the database MySql */
var mysql = require('mysql');
var config = require('../../config/config.json')
/*
var db = mysql.createConnection({
host : 'localhost',
user : 'meet',
port : '8889',
password : 'Super',
database : 'meetus',
database : 'meetus'
});
*/
var db = mysql.createConnection({
host : config.database.host,
user : config.database.user,
port : config.database.port,
password : config.database.password,
database : config.database.db_name
})
db.connect(function(err) {
if (err) throw err
......
{
"node_port": 8080,
"database":{
"host": "localhost",
"port": 8889,
"db_name": "meetus",
"user": "meet",
"password": "Super"
},
"city_search":{
"method": "geodb",
"population": 10000,
......
{
"name": "MarcBook Pro",
"name": "Bachelor 2019",
"creator": "Marc Vachon",
"date": {
"day": 27,
"time": {
"hour": 12,
"minutes": 30
},
"year": 2019,
"month": 5
},
"period": {
"date_to": {
"day": 12,
"year": 2019,
"month": 6
},
"date_from": {
"day": 27,
"year": 2019,
"month": 5
}
},
"location": "",
"user_table": []
"percentage": 0,
"period":{
"date_from": {
"day": 27,
"month": 7,
"year": 2019
},
"date_to": {
"day": 12,
"month": 8,
"year": 2019
}
},
"date": {},
"location": "",
"user_table": []
}
......@@ -3,7 +3,6 @@ var express = require("express");
var bodyParser = require('body-parser')
var request = require('request')
var http = require('http')
require('jquery')
var app = express()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment