Built on socket.io, Node.js and Angular 6.
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).
First, ensure you have the following installed:
- NodeJS - Download and Install latest version of Node: NodeJS
- Git - Download and Install Git
- 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.
In order to start the project use:
$ git clone https://github.com/push1st1k/node-socket-chat.git
$ cd node-socket-chat
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
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