From ed96a071b061adec3f07e205987ea4276342df59 Mon Sep 17 00:00:00 2001 From: hamzadams Date: Thu, 18 Aug 2022 19:32:23 +0200 Subject: [PATCH] init Project --- README.md | 0 layers.txt | 18 ++++++++++++++++++ src/database/data.json | 8 ++++++++ src/handler.js | 0 src/index.js | 0 5 files changed, 26 insertions(+) create mode 100644 README.md create mode 100644 layers.txt create mode 100644 src/database/data.json create mode 100644 src/handler.js create mode 100644 src/index.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/layers.txt b/layers.txt new file mode 100644 index 0000000..7d2e5cf --- /dev/null +++ b/layers.txt @@ -0,0 +1,18 @@ +N-Layers [Ressource](https://medium.com/design-microservices-architecture-with-patterns/layered-n-layer-architecture-e15ffdb7fa42) + +database + - a file which store all application data + +src -all source + - entities - object mappings + - factories - instance generators + - repositories - data acess + - routes - endpoint mappings + - services - communication between the routes and repositories layer (business logic) + - util - shared code + - handler - communication between routes and server + +tests -> all automated test suites + - integration tests - testing on the user point of view. it's also an E2E[OpenClassRoom Cours test E2E](https://openclassrooms.com/fr/courses/7159306-testez-vos-applications-front-end-avec-javascript/7332824-realisez-des-tests-end-to-end) test because there's no app consuming it + - unit tests + all tests that must run without any external connections such as databases, external APIs and on our case, the fileSystem \ No newline at end of file diff --git a/src/database/data.json b/src/database/data.json new file mode 100644 index 0000000..4e26070 --- /dev/null +++ b/src/database/data.json @@ -0,0 +1,8 @@ +[ + { + "id": 10, + "name": "Batman", + "age": "50", + "power": "rich" + } +] \ No newline at end of file diff --git a/src/handler.js b/src/handler.js new file mode 100644 index 0000000..e69de29 diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..e69de29