mirandaleandro / angular-socketio-chat

A chat application written in AngularJS, Socket.IO, Node/Express and Bootstrap. Feel free to fork/experiment.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular-Flavored Chat

Sample AngularJS + NodeJS/Express application demonstrating the use of Socket.IO. I am using:

This project was a simple test of sockets as a traditional (some might say 'ye olde') chat program. I wanted to write it as angularly as possible (is that really a word?) and use the traditional Grunt-based workflow of Yeoman where possible.

I am not using Node at this point for anything more than a chat websocket server, however now you're nicely set up for an /api (see the /route directory and js file for a stupid JSON example).

Build instructions

First, please feel free to symbolicly link the angular web application into /public for testing purposes or modify the node config to add that directory to serve. That makes it possible to do continuous building (and I may fix this project to do that in the very near future).

If you're linking the source into the ./public directory just run node and hit the web browser at your new link directory:

node app.js

Once you're ready to test a final build (minified, two javascript files), do this:

cd angular-frontend
grunt --force
cd ..
node app.js

Then browse to http://localhost:3000 and you should see the chat client.

About

A chat application written in AngularJS, Socket.IO, Node/Express and Bootstrap. Feel free to fork/experiment.

License:Apache License 2.0