Giter Club home page Giter Club logo

gvolpe / trading Goto Github PK

View Code? Open in Web Editor NEW
604.0 13.0 65.0 24.07 MB

๐Ÿ’ฑ Trading application written in Scala 3 that showcases an Event-Driven Architecture (EDA) and Functional Programming (FP)

Home Page: https://leanpub.com/feda

License: Apache License 2.0

Scala 72.05% Nix 21.64% HTML 1.06% Elm 4.63% JavaScript 0.56% Dockerfile 0.06%
event-driven-architecture functional-programming fp eda fs2 cats-effect apache-pulsar apache-kafka elm-lang elm-architecture

trading's People

Contributors

dependabot[bot] avatar gvolpe avatar kubukoz avatar marcinwadon avatar masonedmison avatar mergify[bot] avatar panavtec avatar scala-steward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

trading's Issues

Upgrading dependencies causes smokey to fail

I've forked this project. My fork can be found here.

I've tried to limit myself to upgrading the Scala 3 version to the LTS version, and upgrading the core dependencies to their latest versions supporting Scala 3. In terms of source code changes, this has been completely trivial.

However, when I stand everything up and run sbt smoke, the test fails due to a websocket connection timing out, and several of the expected messages not being received.

Doing the same with the original code passes using the same JVM on the same host.

Looking at the evolving dependencies, my biggest concern is the changes to the http4s JDK client used for websocket support. It appears to have undergone significant revision from M6 to M7, revolving around new cats-effect capabilities. However, neither reverting to M6 (the last version in which simple returns a Resource) and M3 (the version used in the original code) solves the problem. Nevertheless, the finicky-looking nature of the websocket client with respect to state and lifecycles continues to make me nervous.

Any suggestions would be greatly appreciated.

Web App issues: yarn build

[nixos@DESKTOP-NTIRA6H:/mnt/c/Users/awjoh/NixOS2/trading/modules/ws-client]$ yarn build
yarn run v1.22.17
warning package.json: No license field
$ parcel build index.html --dist-dir dist --log-level info
๐Ÿšจ Build failed.

@parcel/core: Failed to resolve './target/scala-3.1.1/webapp-fastopt.js' from './tyrianapp.js'

/mnt/c/Users/awjoh/NixOS2/trading/modules/ws-client/tyrianapp.js:3:8
2 | TyrianApp

3 | } from './target/scala-3.1.1/webapp-fastopt.js';
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4 |
5 | TyrianApp.launch("trading-ws");

@parcel/resolver-default: Cannot load file './target/scala-3.1.1/webapp-fastopt.js' in './'.

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

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.