Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 500 Bytes

File metadata and controls

29 lines (19 loc) · 500 Bytes

websocket-chat-test

Chat web app using web sockets (socket.io) on node.js

Installation

Download the project and install dependencies:

$ git clone https://github.com/joaopatrocinio/websocket-chat-test.git
$ cd websocket-chat-test
$ npm install

Create a .env file containing the following lines:

DB_HOST=example.com

DB_USER=username

DB_PASS=passowrd

DB_NAME=database

Run the server using:

$ node app.js

The server will start on localhost:3000, to stop enter Ctrl-C.