Skip to content

g23988/holyshit-online

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

holyshit setup

1.create empty database called holyshit. remember using utf8 encoding.


2.setting app/protectd/config/database.php

<?php

return array(
	'connectionString' => 'mysql:host=localhost;dbname=holyshit',
	'emulatePrepare' => true,
	'username' => 'root',
	'password' => 'your_password',
	'charset' => 'utf8',
);

3.setting app/node/server.js

var db = mysql.createPool({
    connectionLimit   :   100,
    host              :   'localhost',
    user              :   'root',
    password          :   'your_password',
    database          :   'holyshit',
    debug             :   false
});

4.db migtation initialize

cd holyshit-online/app/protected php yiic migrate


5.start node.js server

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.

have fun AGAIN :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 97.0%
  • JavaScript 1.9%
  • CSS 1.1%