Skip to content

sq435/holyshit-online

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

holyshit setup

1.setting app/config/database.php

<?php

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

2.setting app/node/server.js

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

3. replace some code look at this

in app/sendTest.html

app.get("/",function(req, res){
    res.redirect('http://localhost/~joel.zhong/104/holyshit/app/index.php/client/');
});

http://localhost/~joel.zhong/104/holyshit/app/index.php/client/

you can replace to your correct url.

like this

http://localhost/holyshit-online/app/index.php/client/

4.open the terminal then keypress

node your_holyshit_folder/app/node/server.js

have fun :)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages