Skip to content

Instantly share code, notes, and snippets.

@AlbanMinassian
Created June 28, 2021 15:30
Show Gist options
  • Save AlbanMinassian/16995cfdfd7dd3b511fbe9d7f40fca7c to your computer and use it in GitHub Desktop.
Save AlbanMinassian/16995cfdfd7dd3b511fbe9d7f40fca7c to your computer and use it in GitHub Desktop.
Comprendre l'architecture hexagonale en 5 minutes - avantages - index.mjs
// 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