Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.34 KB

readme.md

File metadata and controls

57 lines (37 loc) · 1.34 KB

Simple chat application

Built on socket.io, Node.js and Angular 6.

Running in Docker

To run it in Docker container, please issue

docker-compose up

wait until Angular CLI complies the source code (until the next message ** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ ** appeared in the console).

Running Server and Client locally

Prerequisites

First, ensure you have the following installed:

  1. NodeJS - Download and Install latest version of Node: NodeJS
  2. Git - Download and Install Git
  3. Angular CLI - Install Command Line Interface for Angular https://cli.angular.io/

After that, use Git bash to run all commands if you are on Windows platform.

Clone repository

In order to start the project use:

$ git clone https://github.com/push1st1k/node-socket-chat.git
$ cd node-socket-chat

Run Server

To run server locally, just install dependencies and run npm:

$ cd server
$ npm install
$ npm start

The socket.io server will be running on port 3000

Run Angular Client

Open other command line window and run following commands:

$ cd client
$ npm install
$ ng serve

Now open your browser in following URL: http://localhost:4200