Giter VIP home page Giter VIP logo

cm's Introduction

CM

CM API is hosted on https://cm-eg.net/swagger/index.html System architecture DataFlowDiagram-system architecture drawio

Main Features:

1- JWT Authentication

  • Login & register with username & Password
  • Login & with PhoneNumber
  • Login with Facebook & Google

2- Profile information

  • Change the username & Password
  • change & verify the phoneNumber
  • Change & verify the Email
  • Upload profilePictures

3- Personal Chat & Group chat

  • Ability to send Pictures & text messaging
  • using realtime signalR connection.
  • Inform the user that the message has been sent.

Backend

DataFlowDiagram-Backend drawio

The api is built using ASP.NET core. CM library built using the Mediator Pattern.

The Mediator design pattern defines an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it let us vary their interaction independently.

The following diagram shows how every request to the CM Library get processed.

DataFlowDiagram-mediator pipeline drawio

So the mediator pipeline as the digram shows does those main things:

1- Log the request

2- Validate the Request

3- If the request Is not valid the return will be validation Exception and it will be logged.

4- Handing the request.

5- If the request is a command that effect the current state we save it as an event to the events database. So that we can track all the actions and when it did happened.

Then apply the changes to the currentStateDatabase

6- If the request is a query we get the data from the currentStateDatabase directly

7- log the end time of the request.

cm's People

Contributors

omarwasfi avatar

Watchers

 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.