Skip to content

Commit 222d29a

Browse files
committed
Not quite sure what I'm doing with node yet, this is my first attempt at writing anything with it. I've started the general layout... there's a main API class call binarybeast, and it must be instantiated before use, new binarybeast('api_key');
The main class also instantiates a few extra modules that have content-specific service wrappers.. for example bb.tournament is a class that has wrappers for creating / managing tournaments. so ie.. bb.tournament.create({args}, callback); is how you could create a new tournament
1 parent 7bfd272 commit 222d29a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

index.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
var http = require('http');
1+
var bb = require('./lib/binarybeast');
22

3+
bb = new bb('asdf');
34

45

5-
http.createServer(function(request, response) {
6-
7-
response.writeHead(200);
8-
response.end('Test!!');
9-
10-
}).listen(80);
6+
console.log(bb);

0 commit comments

Comments
 (0)