All Projects → phachon → phaChat

phachon / phaChat

Licence: other
a web chat by node.js 一个基于 node.js 的多人 web 聊天室

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to phaChat

express-boilerplate
ExpressJS boilerplate with Socket.IO, Mongoose for scalable projects.
Stars: ✭ 83 (+361.11%)
Mutual labels:  socket, node-js
Chat Socket
A simple chat room using java socket with the client-server paradigm
Stars: ✭ 24 (+33.33%)
Mutual labels:  socket, chatroom
ExpressJS-SocketIO-Boilerplate
📦 Simple Express.js & Socket.io Boilerplate
Stars: ✭ 31 (+72.22%)
Mutual labels:  socket, node-js
Quibbler
An experimental website powered by Socket.IO where anonymous chat messages are beautifully visualized in real time
Stars: ✭ 57 (+216.67%)
Mutual labels:  socket, chatroom
Fiora
An interesting open source chat application. Developed with node.js, mongoDB, socket.io and react
Stars: ✭ 4,920 (+27233.33%)
Mutual labels:  socket, chatroom
ChatRoom
🎉简易Cli聊天室 - Python Socket实现
Stars: ✭ 153 (+750%)
Mutual labels:  socket, chatroom
nodekit
[Moved to Codeberg] A Small Web server.
Stars: ✭ 68 (+277.78%)
Mutual labels:  node-js
syncify
🤝 Shopify theme upload, download and watch development tool.
Stars: ✭ 50 (+177.78%)
Mutual labels:  node-js
PruneBot
PruneBot is an easy to use multi-purpose bot and it has a free open source code to setup your own prune bot to your own server.
Stars: ✭ 13 (-27.78%)
Mutual labels:  node-js
wxapp-socket
用于微信小程序socket通信的封装
Stars: ✭ 17 (-5.56%)
Mutual labels:  socket
Chapter-2
Code examples for Chapter 2 of Data Wrangling with JavaScript
Stars: ✭ 16 (-11.11%)
Mutual labels:  node-js
captcha.js
Captcha in Node.js
Stars: ✭ 23 (+27.78%)
Mutual labels:  node-js
karaoke-forever
Open karaoke party system
Stars: ✭ 180 (+900%)
Mutual labels:  node-js
showdown-battle-bot
Socket Battle Bot for Pokemon Showdown (http://pokemonshowdown.com/)
Stars: ✭ 19 (+5.56%)
Mutual labels:  socket
ChatUI
Create your own chat room with ease through ChatUI, a powerful CSS Library!
Stars: ✭ 35 (+94.44%)
Mutual labels:  chatroom
PulseInstrument
脉象仪 波形实时绘制 Demo
Stars: ✭ 30 (+66.67%)
Mutual labels:  socket
windows-network-drive
Do network drive stuff on Microsoft Window in node
Stars: ✭ 18 (+0%)
Mutual labels:  node-js
node-github-publish
Publishes a file to a repository through the GitHub Contents API
Stars: ✭ 20 (+11.11%)
Mutual labels:  node-js
ShiTTYchat
A bare-bones terminal chat room.
Stars: ✭ 24 (+33.33%)
Mutual labels:  chatroom
motor-hat
Node Module to control Adafruits MotorHAT for the RaspberryPi
Stars: ✭ 28 (+55.56%)
Mutual labels:  node-js

phaChat 一个基于 node.js 的多人 web 聊天室

  • chat
  • node
  • express
  • socket

Description 简介

一个简单的 web 聊天室, 采用 node.js 编写,基于 express + mysql + socket 实现的在线多人web 聊天系统,包括用户的登陆注册,用户的个 人信息修改,目的是为了更加深入学习了解 node.js 和 websocket 技术,给初学者一个练习的小项目。有兴趣的同学可以继续完善(用户的头像上传,创建聊天群,消息保存等)

Install 安装

  1. 环境准备

    • npm 3.*
    • node v6.*
    • express 4.3.*
    • mysql 5.5.*
    • redis 2.8.*

    软件的安装请自行查找资料

  2. 创建数据库

    # 进入代码 document 目录, 执行下面命令(如果提示 mysql 找不到,请将 mysql 加入环境变量)
    mysql -u root -padmin -e "source phachat.sql"
    # root 为 mysql 账号,admin 为 mysql 密码
    
  3. 修改配置文件

    打开 config/default.json, 修改 mysql 和 redis 的账号密码配置

  4. 启动

    请保证 mysql, redis 是开启状态,进入代码根目录 phaChat

    npm install
    npm start //开启聊天室客户端
    node server //开启聊天室服务端
    

目录介绍

  • config 配置文件信息
  • core 一些公共的核心类
  • document 文档目录 sql文件
  • models 数据model类
  • public 公共的静态文件(css, js, images)目录
  • routes 路由
  • views 模板文件
  • app.js 客户端全局配置
  • package.json node 模块包信息
  • server.js socket 服务端

界面效果

image

扩展

  • 创建聊天室
  • 用户修改头像
  • 发送表情
  • model层优化

反馈

欢迎提交意见和代码,联系方式 [email protected]

License

MIT

Thanks

Create By [email protected]

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