i have node.js installed on my localhost as well as the mysql module.
when running in command promt:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Node is working!\n');
}).listen(3000, '127.0.0.1');
i get the result in 127.0.0.1:3000 as expected
what i want now is to be able to connect to my mysql module from client....i see people tend to include mysql module like so
<script src="127.0.0.1:3000/mysql.js"></script>
how is this possible please?
when running in command promt:
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Node is working!\n');
}).listen(3000, '127.0.0.1');
i get the result in 127.0.0.1:3000 as expected
what i want now is to be able to connect to my mysql module from client....i see people tend to include mysql module like so
<script src="127.0.0.1:3000/mysql.js"></script>
how is this possible please?