Code Monkey home page Code Monkey logo

stock-market-ticker's Introduction

Stock-Market-Ticker

Stock market ticker which generates data after every 3 secs on an ActiveMQ queue and is consumed and shown on the UI.

The code consists of two applications,

stock-market-ticker: This is a maven based spring application which consists of the ActiveMQ configuration. It has a REST API which calls a Producer which produces messages to a persistent queue and a Consumer which consumes messages from this queue and returns it to the REST API. The REST API finally returns the data to the UI application in JSON format.

stock-price-ticker: This is a ReactJS application which calls the REST API after every 3 seconds and displays the data returned by the REST API on the UI.

Steps to run the applications locally:

  1. Start the ActiveMQ from the installation path e.g. C:\Software\apache-activemq-5.15.12-bin\apache-activemq-5.15.12\bin using the command "activemq start".

  2. Build the spring application "stock-market-ticker" locally and run using commands "mvn clean install" and "mvn tomcat7:run" in the project directory.

  3. Start the ReactJS UI application using command "npm start" in the project directory.

Some important notes-

  1. The ActiveMQ web console can be accessed on localhost:8161/admin.
  2. Run the ReactJS application locally on localhost:3000.

Demo image:

stock-market-ticker's People

Contributors

hetalrachh avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.