Git Product home page Git Product logo

chat-room's Introduction

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

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

chat-room's People

Contributors

journey-ad avatar jingmatrix avatar fossabot 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.