mu-hub-backend's People
mu-hub-backend's Issues
Entity Framework Core setup
- Include EF Core packages for the backend project.
- Set up database with Postgres Provider.
Add watch list feature
Add functionality that allows user to add coins to watch list
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
- Investigate if ELK stack suits our needs.
- Add Serilog package.
- Add appropriate ElasticSearch package.
- Add ElasticSearch and Kibana to the docker-compose file.
- Optionally, add Logstash.
- 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.
Provide authentication mechanism
- Add Jwt service for operating with tokens
- Add authentication service using the above-mentioned Jwt service
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.
- Add roles and permissions to user model.
- 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 tests for Identity Provider
Add tests for testing all actions in Identity Provider.
Add global Error response
- Add logic that encapsulates errors from services
- Add unified responses, containig errors for controllers according to RFC 7807
Swagger with API versioning
Add swagger and set up it to support API versioning.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.