1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-10 12:24:20 +01:00
ipfs-boards/server/server.js

18 lines
412 B
JavaScript
Raw Normal View History

2015-11-11 09:18:36 +01:00
#!/usr/bin/env node
var ipfs = require('ipfs-api')('localhost','5001')
var BoardsAPI = require('../lib/boards-api.js')
2015-11-14 00:16:57 +01:00
var BoardsAPIHttp = require('../lib/boards-api-http.js')
2015-11-11 09:18:36 +01:00
var boards = new BoardsAPI(ipfs)
boards.init(function(err){
if(err){
console.log(err)
} else {
2015-11-14 15:03:38 +01:00
// BoardsAPIHttp(boards)
2015-11-14 01:34:03 +01:00
// setInterval(boards.searchUsers.bind(boards),3 * 60 * 1000)
// boards.searchUsers()
2015-11-11 09:18:36 +01:00
}
})