StasKuzichev / real-time-chat

Simple real-time chat app written using Node.js, Angular, Socket.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real-time Chat Application

Both server and client side are written using TypeScript.

Running Server and Client locally

Requirements

Ensure you have the following installed:

  1. Node.js - Download and Install latest version of Node: NodeJS
  2. Angular CLI - Install Command Line Interface for Angular Angular CLI

Run Server

Copy .env.example file into .env and change enviroment variables

To run server locally in terminal:

$ cd server
$ npm i -g gulp-cli
$ npm i
$ npm run-script build
$ npm start

Server defaults to run on port 8080

Run Angular Client

Open other terminal and run following:

$ cd client
$ npm i
$ ng serve

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

About

Simple real-time chat app written using Node.js, Angular, Socket.io


Languages

Language:TypeScript 88.6%Language:JavaScript 5.8%Language:HTML 5.3%Language:CSS 0.3%