请选择 进入手机版 | 继续访问电脑版

技术控

    今日:0| 主题:61300
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] Orbit: IPFS-based chat, using its pub/sub features

[复制链接]
别许诺 发表于 2016-10-17 02:54:23
375 3
Orbit

   A distributed, peer-to-peer chat application built on IPFS
   NOTE! Currently only the Electron (Desktop) version works. We're working to fix the Browser version (js-ipfs)
   

Orbit: IPFS-based chat, using its pub/sub features

Orbit: IPFS-based chat, using its pub/sub features-1-技术控-features,weixin,dl,features,bag,of,features,focus,features

Orbit: IPFS-based chat, using its pub/sub features

Orbit: IPFS-based chat, using its pub/sub features-2-技术控-features,weixin,dl,features,bag,of,features,focus,features

Orbit: IPFS-based chat, using its pub/sub features

Orbit: IPFS-based chat, using its pub/sub features-3-技术控-features,weixin,dl,features,bag,of,features,focus,features

  Project Status

   Status: In active development
   NOTE! Orbit is still more or less experimental. Things will change and break over the coming months, but we're pushing towards to stabilize the code base. If you come across problems, it would help greatly to open issues so that we can fix them as quickly as possible.
   Check the project'sroadmap to see what's happening at the moment and what's planned next.
   See also theCHANGELOG for what's new!
   If you would like to participate in designing what Orbit is as a product, please join us in Product Design for Orbit issue.
  Run

   Orbit can be run either in a browser or as a native desktop application. The browser application usesjs-ipfs implementation of IPFS . The desktop version uses thego-ipfs implementation of IPFS together with Electron .
  Please note that Orbit is not secure at the moment!

  Live Demo

   http://orbit.libp2p.io/
  The live demo is an old version of Orbit. It is recommended to follow the instructions below to run the latest version.
  Desktop

  1. git clone https://github.com/haadcode/orbit.git
  2. cd orbit
  3. npm install
  4. npm start
复制代码
Browser

  Chrome is recommended to run Orbit in the browser.
  1. git clone https://github.com/haadcode/orbit.git
  2. cd orbit
  3. npm install
  4. npm start
复制代码
Development

  Requirements

  
       
  • Node.js v6.x.x   
  • npm v3.x.x   
  • g++, gcc, make (for building native modules)   
  • python 2 (for building, some native modules need it, node-fibers perhaps?)  
  Get the source code

  1. git clone https://github.com/haadcode/orbit.git
  2. cd orbit/
复制代码
Install dependencies

  1. npm install
复制代码
Run Tests

   Note! Running the tests requires a running redis-server . If you don't have it installed, see installation instructions for OSX or Linux
  1. npm test
复制代码
Browser app development

   NOTE! This is currently not working as described. We're working to fix it.
  1. cd client/
  2. npm install
  3. npm run dev
  4. # This won't work. See bug here: __TODO__
复制代码
  This will open webpack dev-server at http://localhost:8000/webpack-dev-server .
  Build

  1. cd client/
  2. npm install
  3. npm run build
复制代码
  This will create client/dist directory which contains all the files needed to distribute the Orbit browser application.
  Desktop app development

  First, start the desktop app in developer mode:
  1. npm run dev:electron
复制代码
Then, start the UI development environment:
  1. cd client/
  2. npm install
  3. npm run dev
复制代码
Build

   Run this is in project's root directory, not in client/ .
  1. npm run build
复制代码
  The builds are in dist/ .
  API

  We're in the process of separating the core orbit code into its own module and it'll make it possible to use the Orbit API to develop other clients and program using orbit.
   SeeAPI documentation for full details.
  
       
  • Getting Started   
  • Constructor   
  • Properties
           
    • user     
    • network     
    • channels     
    • peers   
       
  • Methods
           
    • connect(username)     
    • disconnect()     
    • join(channel)     
    • leave(channel)     
    • send(channel, message)     
    • get(channel, [lessThanHash], [greaterThanHash], [amount])     
    • getPost(hash, [withUserProfile = true])     
    • getUser(hash)     
    • addFile(channel, source)     
    • getFile(hash)     
    • getDirectory(hash)   
       
  Contributing

   I would be happy to accept PRs! If you want to work on something, it'd be good to talk beforehand to make sure nobody else is working on it. You can reach me on Twitter @haadcode or on IRC #ipfs on Freenode, or in the comments of theissues section.
   A good place to start are the issues labelled"help wanted" or the project's status board .
  License

   MIT © 2016 haadcode
caipengvip 发表于 2016-10-24 11:23:23
人是帖,饭是钢,一天不回,心慌慌
回复 支持 反对

使用道具 举报

吉庆朕 发表于 2016-10-27 00:24:46
怎么我回帖都没人理我呢?
回复 支持 反对

使用道具 举报

静静dê抽烟 发表于 2016-11-11 15:59:47
人是铁,范是钢,一天不装憋得慌
回复 支持 反对

使用道具 举报

我要投稿

回页顶回复上一篇下一篇回列表
手机版/c.CoLaBug.com ( 粤ICP备05003221号 | 文网文[2010]257号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表