There is nothing in DDD that could prevent you from using it as a background for any user interface. Almost any system that is built using DDD, its back-end has a kind of user interface.
In particular, read more about user interfaces and REST. You will need the commands coming to your domain from the interface, based on the tasks that your users perform. You can perform a preliminary check, for example, required fields and data types, in the interface, as well as check the business and process commands in your domain. All communication is done using the REST API for your domain, which will be the adapter between your domain and the user interface.
In addition, SPA systems with the REST API are very suitable for CQRS.
Do not exchange your objects between FE and BE. Always get DTO for data transfer.
source share