1. 30 Jul, 2024 1 commit
  2. 23 May, 2024 1 commit
    • Przemyslaw Kaminski's avatar
      [websockets] initial implementation of async notifications · 9de83328
      Przemyslaw Kaminski authored
      I'm currently able to do the following:
      - start gargantext-server (as it hosts central exchange and
      dispatcher, currently)
      - start a websocket connection:
        websocat ws://localhost:8008/ws
      - subscibe to a topic (in websocat):
        {"request": "subscribe", "topic": {"type": "update_tree", "node_id":
        15}}
      - optionally subscibe to other node_ids or start other websocat's with
        different subscriptions (can be multiple)
      - fire up
        cabal v2-run gargantext-central-exchange -- client
        This triggers a node_id: 15 and node_id: 16 notification to be sent
      
      You can send your own notifications, e.g. with Python:
      import json
      import nanomsg as n
      s = n.Socket(n.PUSH)
      s.connect('tcp://localhost:5560')
      s.send(json.dumps({'type': 'update_tree_first_level', 'node_id': 15}))
      9de83328
  3. 04 Jul, 2023 1 commit
  4. 27 Jun, 2023 2 commits
  5. 22 Aug, 2022 1 commit
  6. 29 Nov, 2021 1 commit
  7. 22 Jun, 2021 1 commit
    • Alp Mestanogullari's avatar
      make gargantext buildable with stack & cabal in a nix environment · eb307705
      Alp Mestanogullari authored
      I revamped the whole Nix infrastructure a bit to clearly delineate the bits
      about providing a suitable environment (with respect to non Haskell deps) and
      the shell and stack helper expressions, and moved it all under `nix/` to
      make it easier to ignore (if not interested) or focus on (if interested) the Nix
      infrastructure of this repository.
      
      For some reason, this required changes that don't seem necessary in the
      Docker environment, even though this all happens using the same GHC version
      as used in the Docker environment/Stackage LTS snapshot.
      
      The said changes correspond to the source repositories mentioned in the
      cabal.project and stack.yaml files that have not been left untouched, for which
      I either pointed to a fork I made, or a different commit that I pushed in a
      dedicated branch (for the ISCPIF gitlab repositories to which I seemingly
      have write access).
      
      Many of the changes were about Haddock `-- |` style syntax being used in an
      unexpected place, and this was making GHC's parser quite sad.
      
      This commit doesn't (yet?) provide Nix infrastructure for building everything
      in/through Nix, but shouldn't be too much work with something like haskell.nix,
      which has suitable tooling to import stack.yaml or cabal.project based
      project specifications and turn them into fully nixified builds, which might
      or might not be desirable.
      eb307705
  8. 23 Mar, 2021 1 commit
  9. 28 Dec, 2020 1 commit
  10. 14 Mar, 2020 1 commit
  11. 03 Mar, 2020 1 commit
  12. 02 Mar, 2020 1 commit