pollser:[演示]实时民意调查应用

时间:2021-05-14 23:57:12
【文件属性】:
文件名称:pollser:[演示]实时民意调查应用
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-14 23:57:12
nodejs pusher real-time JavaScript 轮询器 轮询具有实时功能的应用程序演示。 描述 该应用程序的主页显示民意测验列表。 对民意调查中的某个选项进行投票可实时更新所有客户在该选项旁边显示的投票数。 先决条件 Node.js(v6.0.0或更高版本) MongoDB(v3.4.0或更高版本) 和 入门 克隆项目: git clone https://github.com/shalvah/pollser 将您的Pusher应用程序凭据放入项目根目录下的.env文件中: PUSHER_APP_ID=your-app-id PUSHER_APP_KEY=your-app-key PUSHER_APP_SECRET=your-app-secret PUSHER_APP_CLUSTER=your-app-cluster 在views/index.hbs查找以下JavaScript行: var pusher = new Push
【文件预览】:
pollser-master
----models()
--------poll.js(215B)
----bin()
--------www(2KB)
--------seed.js(1KB)
----package.json(400B)
----routes()
--------index.js(913B)
--------users.js(203B)
----.env.example(50B)
----views()
--------layout.hbs(306B)
--------index.hbs(3KB)
--------error.hbs(74B)
----.gitignore(530B)
----public()
--------stylesheets()
----app.js(1KB)
----README.md(1KB)

网友评论