【文件属性】:
文件名称:chat-nodejs:使用 node、mongo、socket、react、flux 的示例聊天应用程序
文件大小:279KB
文件格式:ZIP
更新时间:2021-06-07 13:35:19
JavaScript
聊天 - node.js
这是一个使用以下内容构建的全栈聊天应用程序:
节点.js
express.js
socket.io
React
通量
少CSS
蒙戈
这只是我们曾经学习过的一个示例应用程序。
开发
设置
步骤 1. 下载并安装 node.js
步骤 2. 从 mongodb.org 下载 mongo,然后运行:
tar -zxvf [dir]
mkdir -p /usr/local/mongodb
cp -R -n [dir] /usr/local/mongodb
vi ~/.bash_profile
export PATH=/usr/local/mongodb/bin:$PATH
步骤 3. 安装所有项目节点模块:
npm install
开始
mongod
gulp reset-db
[New Window] gulp watch
[New Windo
【文件预览】:
chat-nodejs-master
----client()
--------client.js(324B)
--------components()
--------dispatchers()
--------services()
--------apis()
--------config()
--------constants()
--------utilities()
--------actions()
--------styles()
--------stores()
----.gitignore(112B)
----package.json(2KB)
----server()
--------services()
--------models()
--------views()
--------config()
--------routes()
--------server.js(1KB)
----bin()
--------www(1004B)
----gulpfile.js(119B)
----dist()
--------nginx()
----public()
--------font()
--------img()
----README.md(3KB)
----nodemon.json(58B)
----tasks()
--------assets.js(3KB)
--------ssh.js(471B)
--------deploy.js(2KB)
--------database.js(3KB)