项目
在 GitHub 查看
journey-ad/chat-room
关于
一个普通的聊天室
效率与自动化实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- -2
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文chat-room
一个普通的聊天室

Usage
Install
Run on Repl.it
- Open the url https://repl.it/@journeyad/chat-room
- Just hit the Fork button
- And hit the Run button
Deploying on your own server
$ git clone https://github.com/journey-ad/chat-room.git
$ cd chat-room
$ yarn install
$ yarn start
Confignation
app:
port: 3000
db:
type: mongodb # sqlite or mongodb or firebase
If you use mongodb, you need to specify the environment variable DB_URL
# eg:
export DB_URL=mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count
repl.it can use .env file, documentation
DB_URL="mongodb+srv://account:passwd@***.***.***.mongodb.net/db_count"
How to use
The chat room URL looks like this:
https://chat.getloli.com/room/@:name?title=the title whatever
Just use your own name and title, eg:
https://chat.getloli.com/room/@test?title=a simple title
And you can open in new tab or use iframe, example
SVG Charts
By the feature of SVG <foreignObject>, we can make an SVG element contain a standard HTML page.
As we know SVG can be referenced as an image.
And then...
Magical! a Real-time chart that can be inserted into any document that supports images.
Just like this guy's personal home page
This is all parameters, do it yourself:
https://chat.getloli.com/room/@test/svg?width=750&height=360&limit=20&theme=light&fontSize=13&[email protected]: ~
Credits
License
探索相关项目
加载中…