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/
- Docker - Download and Install latest version of Docker: Docker
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/rpascal/socket-io-typescript-chat.git
$ cd socket-io-typescript-chat
To start up docker run the following command.
$ docker-compose up --build
Sometimes it is good to either reset the containers or all of Docker
To reset Containers:
$ sudo bin/resetContainers.sh
To reset Docker: (ie: delete images, delete containers, start up)
$ sudo bin/resetDocker.sh
To run server locally, just install dependencies and run gulp
task to create a build:
$ cd server
$ npm install -g gulp-cli
$ npm install
$ gulp build
$ npm start
The socket.io
server will be running on port 8080
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
Forked from luixaviles
MIT