1
0
mirror of https://github.com/fazo96/ipfs-boards synced 2025-01-26 15:04:19 +01:00
ipfs-boards/server/server.js
2015-11-14 15:03:38 +01:00

18 lines
412 B
JavaScript
Executable File

#!/usr/bin/env node
var ipfs = require('ipfs-api')('localhost','5001')
var BoardsAPI = require('../lib/boards-api.js')
var BoardsAPIHttp = require('../lib/boards-api-http.js')
var boards = new BoardsAPI(ipfs)
boards.init(function(err){
if(err){
console.log(err)
} else {
// BoardsAPIHttp(boards)
// setInterval(boards.searchUsers.bind(boards),3 * 60 * 1000)
// boards.searchUsers()
}
})