All Projects → naoyeye → Perber

naoyeye / Perber

Licence: mit
隐藏自己 做好清理

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Perber

Gitmessenger
GitMessenger is github chat app built with socket.io , firebase, nodejs and bootstrap where developers can share code,images and much more 😊
Stars: ✭ 78 (-45.83%)
Mutual labels:  express-js, socket-io
socketChat
💬 A real-time messaging application built using Socket.IO and Express
Stars: ✭ 31 (-78.47%)
Mutual labels:  socket-io, express-js
node-vue-chat
🚀 🌠 Real Time Chat Application created with MEVN Stack
Stars: ✭ 89 (-38.19%)
Mutual labels:  chatroom, socket-io
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (-78.47%)
Mutual labels:  socket-io, express-js
Darkwire.io
End-to-end encrypted instant web chat
Stars: ✭ 594 (+312.5%)
Mutual labels:  chatroom, socket-io
bubbly
Full stack chat application created w/ Next.js, Socket.IO, Express, React and TypeScript
Stars: ✭ 24 (-83.33%)
Mutual labels:  chatroom, socket-io
express-boilerplate
ExpressJS boilerplate with Socket.IO, Mongoose for scalable projects.
Stars: ✭ 83 (-42.36%)
Mutual labels:  socket-io, express-js
Genal Chat
🐱‍🏍阿童木聊天室 nestjs+vue全栈聊天室 前后端分离 typescript一把梭
Stars: ✭ 1,105 (+667.36%)
Mutual labels:  chatroom, socket-io
Syntaxmeets
Syntaxmeets. Create rooms 🏠 Call your friends 👬🏼 Sip Chai, ☕ Chat, Create, and Code👨‍💻. A coding platform to code simultaneously 🚀 with your friends and design your algorithms on SyntaxPad.💫✨
Stars: ✭ 110 (-23.61%)
Mutual labels:  chatroom, socket-io
Xechat
基于SpringBoot+STOMP协议实现的web聊天室
Stars: ✭ 115 (-20.14%)
Mutual labels:  chatroom
Charroom
PHP + Swoole 聊天室
Stars: ✭ 125 (-13.19%)
Mutual labels:  chatroom
Tojump
nodejs版本玩微信跳一跳小游戏
Stars: ✭ 114 (-20.83%)
Mutual labels:  socket-io
Teammate Android
A Team Management app for creating tournaments and games for various sports
Stars: ✭ 116 (-19.44%)
Mutual labels:  socket-io
Tsed
📐 Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 1,941 (+1247.92%)
Mutual labels:  socket-io
Batcave
Batcave client is chat app built with Electron and Angular2, Socket.io with RxJS.
Stars: ✭ 114 (-20.83%)
Mutual labels:  socket-io
Drone Keyboard
Drone Keyboard for Tello
Stars: ✭ 136 (-5.56%)
Mutual labels:  socket-io
Chat Room
使用GO+Vue构建的聊天室网站
Stars: ✭ 113 (-21.53%)
Mutual labels:  chatroom
Graphql Live Query
Realtime GraphQL Live Queries with JavaScript
Stars: ✭ 112 (-22.22%)
Mutual labels:  socket-io
Dino
Distributed notifications using websockets
Stars: ✭ 142 (-1.39%)
Mutual labels:  socket-io
Klik Socialmediawebsite
Complete PHP-based Login/Registration system, Profile system, Chat room, Forum system and Blog/Polls/Event Management System.
Stars: ✭ 129 (-10.42%)
Mutual labels:  chatroom

Perber 是什么

一个可以实时匿名群聊的 web 服务。 特色是无需注册,每个人都可以删掉其他人说的话。

用到了哪些

  • express
  • socket.io
  • redis

功能

  • 长按消息块,删除
  • 来新消息时声音提醒
  • @某人时,会链接到他的twitter
  • 简单的颜文字表情识别
  • 识别新浪图床和 instagram的图片 url ,直接展示图片
  • 识别发言人所在城市或国家
  • 支持中英文识别,英文会以大字体显示
  • 支持虾米音乐识别(不太稳定,最好是以 https://www.xiami.com/song/1769490347 这种数字 id 类型的 url 来测试)
  • 上传图片 20181022 - 因七牛 api 调整,上传图片功能暂时关闭
  • 限制单个人发言次数

如何运行

  1. 在你的 MySQL 中创建名为 perber 的数据库, 然后导入项目根目录中的 perber.sql

  2. /Peber/perber/ 中运行 npm install,安装项目所需的包,当然运行 yarn 也可以。

  3. 修改 config-example.json (位于目录: /Perber/perber/config/ 中) 为 config.json

  4. 修改 config.json 中的 mysqlConf qiniuConfig(前提是已经有了自己的 bucket_name, access_keysecret_key) 和 mailer.

  5. 启动: node perber/app.js

  6. 在浏览器中访问 : http://localhost:6789 (默认端口为 6789)

设置 config.json:

redisConf

如果 redis 端口没改过,基本上保持默认就好

mysqlConf

设置你的 mysql host, port, user, password, database.

qiniuConfig

设置七牛

Perber 用到了 Qiniu 来存储图片, 你需要注册 Qiniu 来获得 "bucket_name" "access_key" 和 "secret_key"。

Qiniu Cloud Storage: http://www.qiniu.com/ Qiniu on Github: https://github.com/qiniu

qqMap

设置腾讯地图 API key: https://lbs.qq.com/guides/startup.html

mailer

用来发信的,可以写俩自己的邮箱

auth

暂时没有用到

session

设置 key 和 secret

app

设置服务运行的端口号(默认端口为 6789)、timer、limit

**app.timer:**

清理程序 sockets.js 里的cleaner() 的自动运行时间间隔,按分钟计算。

设为 1 ,则 1分钟运行一次。

**app.limit:**

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

theme

保持默认就行,目前只有 default 一种

debug : true | false

调试用的

API

目前只有一个,没什么用。

post new message

url: /api/v1/new

var data = { msg: "HAKULAMATATA test api" };
$.ajax({
    url:'http://www.perber.com/api/v1/new',
    contentType: 'application/json; charset=utf-8',
    type: 'POST',
    data : JSON.stringify(data)
})

UI

  • iOS Safari:

Perber in iOS Safari

  • Chrome(Mackbook Pro 13):

Perber in Chrome

Perber in Chrome

依赖的第三方服务

  • apis.map.qq.com:腾讯地图 API,用于解析 ip, 显示所在城市或国家

  • xiamiRun:之前写的一个用来解析虾米音乐地址的服务 https://github.com/naoyeye/xiamiRun 不太稳定

为什么做这个:

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

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].