mirror of
https://github.com/fazo96/ipfs-boards
synced 2025-01-26 15:04:19 +01:00
18 lines
412 B
JavaScript
Executable File
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()
|
|
}
|
|
})
|