#Sample of Hexagonal Architecture on clientside
Target: Create a sample that how i can use Hexagonal Architecture on client side JS
Description:
A sample main class that controlls click action in a button, call a repository to obtain data from an API an render the result inside a div.
Folders:
- Entities: Domain entities with a logic of aplicattion
- Repositories: Class to do AJAX calls, the methods of this classes return a Promise object
- Services: Class to manage calls to the methods of repositories and agreggate data
- Ui: UI components of application, this classes do stuff with document, window and DOM elements
Runing the sample:
- npm install
- npm run dev
- Go to http://localhost:1234