Skip to content

junnny/Perber

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

'Hide yourselves, do cleanup'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published