Giter Club home page Giter Club logo

chatv2's Introduction

yuanchat

弹幕收发

安装
$ git clone https://github.com/wallaceyuan/chatV2.git
$ npm install
启动命令
# 运行客户端
$ npm run app

# 运行服务端
$ npm run sclient

浏览器打开http://127.0.0.1:3000/ 查看效果
依赖redis和mysql
# windows安装启动
D:\redis
$ redis-server redis.conf

# mac
$ redis-server
或者将redis启动到后台
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
安装下载项目js
# 全局安装bower
$ npm install -g bower

# 安装js依赖
$ bower install
前端模板
var app = express();
// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'html');
app.engine('html',require('ejs').__express);
测试页面
./views/online.html

在线人数查看
./views/online.html?liveid=xxx

服务器部署
PM2

当在内网服务器部署时,推荐使用 PM2 来守护你的应用进程。

全局安装 PM2
# 如果有权限要求,记得加 sudo
$ npm install pm2 -g

chatv2's People

Contributors

wallaceyuan avatar

Stargazers

 avatar

Watchers

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