<?php
return array(
'connectionString' => 'mysql:host=localhost;dbname=holyshit',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'your_password',
'charset' => 'utf8',
);
var db = mysql.createPool({
connectionLimit : 100,
host : 'localhost',
user : 'root',
password : 'your_password',
database : 'holyshit',
debug : false
});
cd holyshit-online/app/protected
php yiic migrate
node your_holyshit_folder/app/node/server.js
The api of sensor receive in localhost:3000/api/
You can test in this url http://localhost/holyshit-online/test-program/send-test.html
if you want to test api.