Code Monkey home page Code Monkey logo

mx-exchange-service's Introduction

GraphQl service to provide backend environment for xExchange

Dependencies

  1. Node.js > @18.x.x is required to be installed docs
  2. Redis Server is required to be installed docs.
  3. RabbitMQ Server is required to be installed docs.
  4. MongoDB Server is required to be installed docs.

You can use docker-compose up in a separate terminal to use a local docker container for all these dependencies.

After running the sample, you can stop the Docker container with docker-compose down

Available Scripts

This is an MultiversX project built on Nest.js framework.

npm run start

Runs the app in the production mode. Make requests to http://localhost:3005/graphql.

Running the app

  1. At the root folder run (make sure you have node v16.x.x)
$ npm install
  1. Proper config .env.example based on desired configuration

  2. Start the app

# development debug mode
$ npm run start:debug
# development mode
$ npm run start:dev
# production mode
$ npm run start

It depends on the following external systems:

A service instance can be started with the following behavior:

  • public API: provides graphQL queries for the consumers
  • private API: used to report prometheus metrics & health checks
  • rabbitMQ: used to fetch events in real time and create analytics data
  • cache warmer: used to proactively fetch data & pushes it to cache, to improve performance & scalability

It depends on the following optional external systems:

  • events notifier rabbitmq: queue that pushes logs & events which are handled internally e.g. to store token prices
  • AWS Timestream: used to store time based metrics such as prices, volumes, fees

It uses the following optional internal systems:

  • mongo database: used to store configs and addresses

mx-exchange-service's People

Contributors

claudiulataretu avatar constantintovisi avatar dragos-rebegea avatar florincoz avatar gabrielmatei avatar gfusee avatar ioandanpopa avatar johnykes avatar mad2sm0key avatar radumojic avatar tanghel avatar

Stargazers

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