Just a simple chat built using DHTMLX on client and Node.js (Express + ws) && Redis on back end
List of softwares that you need to have already installed:
- Redis (running on localhost)
- Node.js
- Grunt
Download this repository and uncompress to a given directory, lets assume: /Users/YourName/apps/dhtmlxNodeChat/
Or, use npm
npm i dhtmlx-node-chat
On terminal, navigate to the project directory:
$ cd /Users/YourName/apps/dhtmlxNodeChat/
Install grunt (if you don't have it installed):
$ npm install -g grunt-cli
Install dependencies:
$ npm install grunt-contrib-qunit --save-dev
$ npm install express --save
$ npm install --save ws
$ npm install grunt-express --save-dev
$ npm install redis
$ npm install passport
$ npm install passport-local
$ npm install lodash
Now , type on terminal:
$ grunt test
$ grunt server
Then open the browser and reach the following address to see the tests:
http://localhost:4080/test/t.html
Or open the browser and reach the following address to see the application running:
http://localhost:4080/
$ cd /Users/YourName/apps/dhtmlxNodeChat/
$ node app.js