GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - start-angular/angular2-node-socket-io-chat-app: Chat App built using Angular 2 and Node (Socket.io)

BranchesTags
Open more actions menu

Latest commit

 

History

38 Commits
38 Commits

Folders and files

NameName
Last commit message
Last commit date
client
client
 
 
public
public
 
 
server
server
 
 
typings
typings
 
 
.gitignore
.gitignore
 
 
License
License
 
 
README.md
README.md
 
 
index.html
index.html
 
 
package.json
package.json
 
 
styles.css
styles.css
 
 
systemjs.config.js
systemjs.config.js
 
 
tsconfig.json
tsconfig.json
 
 
tslint.json
tslint.json
 
 
typings.json
typings.json
 
 

Repository files navigation

NOTICE: This repo has been deprecated

[DEPRECATED] Angular2 Chat App

An Angular 2 chat app using Angular 2, Node, socket.io, Express, SystemJS, TypeScript, Services, Injectables, Forms, Routing & Navigation, and tslint by GeekyAnts team

Note: This repo is no longer maintained.

This repo shows an example chat application using Socket.io, Node and Angular 2. The goal is to implement Socket Programming with Angular 2. It also features:

  • Express configuration with TypeScript, and tslint
  • Use of injectables, forms, routing & navigation services in Angular 2
  • Wiring together Angular2 client-side components with Socket.io and Express on the server.
  • And much more

View the chat-app GIF here:

Angular 2 Node Socket.io Chat

Quick start

# clone the repo
git clone https://github.com/start-angular/angular2-node-socket-io-chat-app.git 

# change into the repo directory
cd angular2-node-socket-io-chat-app

# install 
npm install

# run
npm start

Then visit http://localhost:3000 in your browser.

Architecture

Angular 2 Node Socket.io Chat

There are two components:

  • NickName - for the welcome page that initiates socket client connection
  • Chat - for the chat page that depicts message flow between different sockets

Angular 2 Node Socket.io Chat

Angular 2 Node Socket.io Chat

There are mainly three sections of the Chat-component:

  • ChatBox - for the interaction between different chat-Users/socket connections
  • ChatUsersList - shows the currently active chat-Users/Scokets
  • ChatUserAlerts - shows the chat-user alerts for new user connection, dis-connected user and success for message passing

Angular 2 Node Socket.io Chat

File Structure

Here's an overview of how the files are laid out in this project:

angular2-node-socket-io-chat-app/
|
├── client/                         	* Where our Angular2 client code is stored
│   ├── chat-component/               * All of our chat-component files are here
│   │   ├── chat.component.ts       	* Chat Component
│   │   ├── chat.component.html     	* chat Component HTML
│   │   ├── chat.module.ts      		* chat module 
│   │   ├── chat.route.ts      		* chat component routes
│   │   └── index.ts       		    * index file for chat Component
|   |   
│   ├── nickName-component/           * All of our TypeScript is here
|   |	|
│   │   ├── nickName.component.ts 	* nickName Component
│   │   ├── nickName.component.html   * nickName Component HTML
│   │   ├── nickName.module.ts 		* nickName module
│   │   ├── nickName.route.ts 	    * nickName component routes
│   │   └── index.ts 					* index file for nickName Component
|   |   
│   ├── service/ 		      	      * service for all components
|   |	|
│   │   └── global.ts 		        * file with global attributes
|   |  
│   ├── app.component.html 			  * Home component HTML   
│   ├── app.component.ts 			  * Home component 
│   ├── app.module.ts                 * Aap Module  
│   ├── app.routing.ts                * App images  
│   └── main.ts            			  * Angular 2 Entry point  
|    
├── public/							* Stores app images and gif
|	|
│   ├── Chat-Page.png       		  * chat page image
│   ├── chat-app.gif       		      * chat app gif
│   ├── ChatPage-Description.png      * chat page description image
│   ├── Sequence-Diagram.png      	  * app sequence diagram image
│   └── Welcome-page.png			  * welcome page image
|   
├── server/             		        * Server side code (socket.io,express,node)
│   └── index.js       			      * Aap entry point
|
├── typings/                          * tsd managed typings
├── index.html                  	    * HTML entry point 
├── styles.css                   		* Contains app CSS
├── package.json                    	* Our javascript dependencies
├── README.md                       	* This file
├── systemjs.config.js                * syatemJS configuration file
├── tsconfig.js                 	    * Some hacks to get TypeScript tests
├── tslint.json                       * Configures our TypeScript linter
└── typings.json                      * Configures our TypeScript linter 

Known Issues

There is a issue with Windows systems. The directory path doesn't gets resolved correctly thereby creates compile issues with typecsript files. The app works fine on MAC and Linux systems. This issue will be resolved in coming weeks. Also If anyone finds a fix for the same, do send a pull request.

About

Chat App built using Angular 2 and Node (Socket.io)

Resources

Readme
License
Activity
Custom properties

Stars

138 stars

Watchers

24 watching

Forks

105 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.