Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 997 Bytes

File metadata and controls

32 lines (26 loc) · 997 Bytes

Socket.io + Jade teamplate demo

Socket.io

Full document at socket.io

Socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

Jade

Jade is an elegant templating engine, primarily used for server-side templating in NodeJS. In plain words, Jade gives you a powerful new way to write markup, with a number of advantages over plain HTML.

Installation

Package

via npm:

$ npm install

Start server

Run the app\js\server.js file with:

$ node app\js\server.js

Test

After start server, open localhost:3700 in your browser.

Referent

  1. https://socket.io
  2. http://jadelang.net
  3. http://learnjade.com
  4. https://naltatis.github.io/jade-syntax-docs