forked from hgourvest/node-firebird
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Install webtcp | ||
Clone the repo | ||
git clone https://github.com/yankov/webtcp | ||
|
||
Install dependencies | ||
cd webtcp | ||
npm install | ||
|
||
Run WebTCP server | ||
cd examples && node server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script src="./webtcp-0.0.1.min.js"></script> | ||
<script src="../browser-index.js"></script> | ||
<script> | ||
|
||
var tcp = new WebTCP('127.0.0.1', 9999); | ||
var fb = require("node-firebird"); | ||
fb.attach( | ||
{ | ||
host: '127.0.0.1', | ||
database: 'database.fdb', | ||
user: 'SYSDBA', | ||
port: '3050', | ||
password: 'masterkey' | ||
}, | ||
function(err, db){ | ||
if (err) { | ||
console.log(err.message); | ||
} else { | ||
database = db; | ||
console.log("connected"); | ||
} | ||
} | ||
); | ||
|
||
|
||
</script> |
Oops, something went wrong.