Created
June 28, 2021 15:30
-
-
Save AlbanMinassian/16995cfdfd7dd3b511fbe9d7f40fca7c to your computer and use it in GitHub Desktop.
Comprendre l'architecture hexagonale en 5 minutes - avantages - index.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// index.mjs | |
import aws from "aws-sdk"; | |
import oracle from "oracle"; | |
import soap from "soap"; | |
import datalog from "datalog"; | |
import mon_premier_service from "services/mon_premier_service.mjs" | |
const datas = { "name": "world" }; | |
const adapters = { | |
"lire_un_fichier": aws.getbucket, | |
"mettre_a_jour_la_base_de_données": oracle.update, | |
"appeller_un_service_post": soap.insert, | |
"logger": datalog | |
}; | |
const result = mon_premier_service(datas, adapters); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment