Coder Social home page Coder Social logo

meticulo3366 / angular-socketio-chat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from krimple/angular-socketio-chat

1.0 2.0 0.0 2.81 MB

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

License: Apache License 2.0

ApacheConf 72.01% HTML 17.37% CSS 2.10% JavaScript 8.52%

angular-socketio-chat's Introduction

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.

At some point I need to take a day and convert this over to a more comprehensive script with gulp. Ah, todo todo...

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).

Runtime instructions

I have the root app.js node script pointing to serve / as the content in /angular-frontend/app/ - you can construct and build and minify with grunt --force in the angular-frontend directory. This will set the content in /public to the minified version of the application and you can serve that by editing app.js.

To launch the app and run in development mode:

node app.js

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

  1. Edit the app.js file and swap the commented and uncommented lines that serve the static content.

  2. Run the build:

cd angular-frontend
grunt --force
cd ..
node app.js
  1. Browse to http://localhost:3000 and you should see the chat client using minified scripts.

angular-socketio-chat's People

Contributors

krimple avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.