Awesome Open Source
Awesome Open Source

chat-room

chat-room

一个普通的聊天室

Snipaste_2020-08-12_18-42-17.png

Demo

Usage

Install

Run on Repl.it

Deploying on your own server

$ git clone https://github.com/journey-ad/chat-room.git
$ cd chat-room
$ yarn install

$ yarn start

Confignation

config.yml

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:[email protected]***.***.***.mongodb.net/db_count

repl.it can use .env file, documentation

DB_URL="mongodb+srv://account:[email protected]***.***.***.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...

SVG Charts

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

FOSSA Status


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (68,711
websocket (458
chatroom (27

Find Open Source By Browsing 7,000 Topics Across 59 Categories