Giter Club home page Giter Club logo

perber's Introduction

About

I think it might be a meaningless thing(>_<), but just like a small experimental. I prefer to think of it as a hollow. The difference with hollow is: nobody knows who I am, but they can see what I said. when someone 'touch' my words, it'll disappear.

Maybe you can think of Perber as a blackboard in the square, anyone can put on the cloak into the square, write text and paste picture on the blackboard, anyone can also put them cleared. yep, it's realtime! (thanks to socket.io)

"Not a community, not a forum, not a micro-blog, not a chat room."

"No follow, no timeline, no notification, no registration."

"All the words will gone, only the void forever lone."

"Any information published by anyone may also be deleted by anyone."

Requirements

node.js, socket.io, redis, jade, mysql(node-mysql), node-qiniu

Perber use Qiniu to store pictures, so, you'll need a "bucket_name" "access_key" and "secret_key".

Qiniu Cloud Storage: http://www.qiniu.com/

Qiniu on Github: https://github.com/qiniu

How To Start

  1. create database Perber in MySQL , create tables use perber.sql

  2. run npm install in directory: /Peber/perber/

  3. change the file config-example.json (directory: /Perber/perber/config/ ) to config.json

  4. modify mysqlConf qiniuConfig(make sure you got the bucket_name, access_key and secret_key) and mailer in your config.json file.

  5. run server: node perer/app.js

  6. open in browser : http://localhost:6789 (the default port is 6789)

Tips:

you can also use "node-supervisor" to run perber : https://github.com/isaacs/node-supervisor

npm install supervisor -g

supervisor perber/app.js


##config.json:

config.app.timer: 清理程序 sockets.js 里的cleaner() 的自动运行时间间隔,按分钟计算。 设为 1 ,则 1分钟运行一次。

config.app.limit: 在设定的 timer 时间范围内,每个在线用户最多能发多少信息。

If you want run Perber on your online server, maybe you should install "forever" https://github.com/nodejitsu/forever :

npm install forever -g

forever start perer/app.js

UI Preview

  • Web preview in iOS Safari:

Perber in iOS Safari

  • Perber in Chrome(Mackbook Pro 13):

Perber in Chrome

Perber in Chrome

The starting point:

http://www.douban.com/group/topic/45262966/

License

This code is distributed under the terms and conditions of the MIT license.

perber's People

Contributors

naoyeye avatar ihapboy avatar

Watchers

Colanns 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.