GithubHelp home page GithubHelp logo

harishajdarevic / angular-nodejs-socketio-semantic Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 1.47 MB

Real time Angular 2 application with NodeJS ( express ) for back-end side and SocketIO .This application show one example of long running async operation that is visible as progress bar where user can cancel it or it can be canceled by an exception.

Home Page: https://angular-nodejs-realtime-app.herokuapp.com/

License: MIT License

JavaScript 8.44% TypeScript 68.11% HTML 23.15% CSS 0.31%
socketio nodejs async-operation angular websocket websocket-server websocket-client

angular-nodejs-socketio-semantic's Introduction

Description

This is an example for realtime communication between client ( Angular ) and server ( NodeJS ) via WebSockets ( SocketIO ).

You will see different variations of asynchrounous actions that are triggered with REST API and response is returned immediatelly from a server where "long" running operation continues processing in background.

This is useful to release client by getting response immediatelly and not waiting that operation finish.

On other hand user needs to be informed what is happening on server and here that is presented with progress bar.

User is able to start async operation, cancel it and also we are going to simulate catching an exception and stopping operation.

Live demo

Demo

Screenshot

Screenshot of demo application

Prerequisites

Node.js and npm are essentials.

I recommend nvm for managing multiple versions of node and npm.

Installation

After project cloning go inside root directory and run:

npm install

Run

After installation of all dependencies finish

npm run "[A + N] Start angular & server"

Above command will start nodejs and angular client.

So you can access to demo page at:

http://localhost:5678/

Licence

MIT License

angular-nodejs-socketio-semantic's People

Contributors

harishajdarevic avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

junqueira

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.