#Chatty Yet another demo Chat application for playing with websockets. This one using the following stack:
- Node.js
- Express
- socket.io
- Angular2
- Typescript
This is a typical chat application demo used for demoning socket.io.
This is not an original work, most of it originates
from Nic Raboy and his blog example here: link
That version of code did not work with current Angular2 versions, so
I updated it to Angular2.0.0-rc.5
. I also changed it to use a service
to handle all the websocket communications, and remove the database
so as to simplify things.
To run this app:
- install node.js
- download both directories (client and server) into a single parent directory
- navigate to the client directory and
npm install
to install the client-side node modules - navigate to the server directory and run
npm install -g express
to install express as a global module - run
npm install -g typescript
to install typescript as a global module - run
npm install
to install the server-side node modules - launch the application from the server folder as
node app.js
. - Use your browser to navigate to http://localhost:8079