GithubHelp home page GithubHelp logo

tickerconsumer's Introduction

How to use:

Backend

  1. Download repo.
  2. Open remote100Test like maven project -> start spring app from Remote100TestApplication class.

Frontend

  1. Open ui in separate window or IDE.
  2. Open terminal and paste: yarn install
  3. After project will be installed paste: yarn start

After that you can use localhost:8080/tickConsume endpoint to post orders (remember to authenticate before send a requests with: username=admin password=password123)

And UI will be using localhost:8080/getTicks to display the orders

What was implemented:

  1. Spring service with two endpoints

/tickConsume - endpoint secured by JWT handles POST requests woth JSON body like: {"userId": "134256", "currencyFrom": "EUR", "currencyTo": "GBP", "amountSell": 1000, "amountBuy": 747.10, "rate": 0.7471, "timePlaced" : "24-Jan-22 10:27:44", "originatingCountry" : "FR"}

/getTicks - endpoint handles GET requests which return list of Objects that include calculated data for ui

  1. Basic UI with displaying currency pair and basic stats for it.

Future features:

  1. Kafka integration to handle massive amount of requests
  2. UI modification, to show data with animations and graphs (all ticks are passed by backend already)
  3. Add sign-in/sign-up for UI. And add JWT to /getTicks
  4. Add ability to sell and buy (add db, ui components, controller endpoints, service methods)

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.