Giter VIP home page Giter VIP logo

mu-hub-backend's People

Watchers

 avatar

mu-hub-backend's Issues

Add validation to services

Create a new validation service using FluentValidation to validate input DTOs in Application and Infrastructure layers.

Add Logging logic to the project

  1. Investigate if ELK stack suits our needs.
  2. Add Serilog package.
  3. Add appropriate ElasticSearch package.
  4. Add ElasticSearch and Kibana to the docker-compose file.
  5. Optionally, add Logstash.
  6. Tune essential dependencies and provide logic for logging in application services.

Add basic interaction with coins

  • Provide basic communicating with Market Library
  • Provide logic to store coins data to the database
  • Create mapping ids for fetched data from Market Library when saving to the main database
  • Create a hub that uses WebSocket protocol or SSE to send updated data in real time

Coins data includes:

  • Coins, containing info about used coins in application such as ExternalSymbolId, SymbolId, Symbol, Name. It contains mapping ids, so she knows relationship between coins from the application and Market Library (ExternalSymbolId <-> SymbolId)
  • MarketCoins, containing info that users should get using a hub such as SymbolId, Symbol, Name, ImageUrl, CurrentPrice,, MarketCapRank, High24H, Low24H, LastUpdated, IsValid
  • MarketCoinsUpdateTimestamp, containing LastUpdated - time when MarketCoin data was updating last time

Create User Service

  • Add a new service for interacting with Users, including creating, updating, deleting entities from the database.

Add market library or create a new one

The task is to investigate and provide basic implementation with CoinGecko that allows to fetch some data. This task doesn't impose any optimization or performance requirements.

The result should satisfy following points:

  • API endpoint that is used to fetch data by simple filter.
  • Application service that gives an ability to use fetched data in other services later.
  • Separate library containing all inside logic associated with a chosen library and market provider.
  • Thus, the logic similar to this:
    API controller -> Application services -> Separate library with inside or low-level logic for the market provider -> Market provider's library.

Provide roles and permissions for users.

Every user should be assigned to one role. Role contains one or more permissions.

  1. Add roles and permissions to user model.
  2. Provide mechanism that gives an ability to allow or forbid access according to permissions.

Additional info about JWT and permissions:

  • JWT Access token and Identity token must include user role.
  • Investigate pros/cons of both following appropriate approaches. JWT Access token and Identity token can contain compressed user permissions since the token lifetime will be small enough assumedly and changing roles are not planned. Alternatively, allowed to create fetching permissions by role on every API call from database + distributed cache (Redis is an example). The decision about the flow must be discussed and clarified later.

Add Users into the database

Provide functionality to store Identity Users into the database. It must be only adding a database set of User models as IdentityUsers to the database context. There is no need to provide services for interacting with this model.

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.