Giter Site home page Giter Site logo

ii / friends Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moose-team/friends

0.0 3.0 0.0 1.47 MB

P2P chat powered by the web.

Home Page: http://moose-team.github.io/friends/

License: MIT License

JavaScript 73.74% CSS 18.17% HTML 7.50% Protocol Buffer 0.60%

friends's Introduction

Friends

travis david

P2P chat powered by the Web

screenshot

Alpha quality you probably only want to use this if you like to send pull requests fixing things :)

How it works

See our site or the gh-pages branch.

Logging in

You need a working git + github configuration

  • have a publicly listed github email (e.g. shows up on your github account)
  • if you dont wanna do that then do git config --global user.username yourusername

When you launch the app it should "just work" now if you have git setup correctly :)

If it doesnt work, do this to get debug information:

$ npm i github-current-user -g
$ DEBUG=* github-current-user

Note: DSA keys are not supported. You should switch to RSA anyway for security reasons.

If it can't verify you, try doing ssh-add ~/.ssh/id_rsa. Your key should show up when you run ssh-add -l.

Building

You'll need the newest io.js and npm (>= 1.8.1, >= 2.8.3)

  • npm install
  • npm run rebuild-leveldb to compile leveldown for electron. you will have to modify the command in package.json if you are not on a 64-bit architecture
  • npm start to run in electron
  • npm run package to build distributable.

Running on a server

We have included a message seeding utility (named "peerbot") that you can run yourself on a server to ensure that there will always be a peer available to connect to for a channel.

  • first, follow the build instructions above
  • npm i electron-spawn electron-prebuilt -g
  • electron-spawn peerbot.js --channel=cats

it always seeds the #friends channel, pass --channel=mychannel to also seed another channel. you can specify as many channels as you want with multiple --channel flags

If you running it on headless Ubuntu, you will need to use xvfb-run to create a virtual display so that Chromium can run:

$ sudo apt-get install xvfb
$ xvfb-run electron-spawn peerbot.js

Also you may need to apt-get install libgconf-2-4

Contributing

Contributions welcome! Please read the contributing guidelines before getting started.

License

MIT

friends's People

Contributors

feross avatar max-mapper avatar mafintosh avatar shama avatar ungoldman avatar beaugunderson avatar bcomnes avatar flet avatar adjective-object avatar calvinmetcalf avatar trott avatar freeall avatar junosuarez avatar tunnckocore avatar keis avatar kakelp avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.