Skip to content

Commit

Permalink
init Project
Browse files Browse the repository at this point in the history
  • Loading branch information
HamzaDams committed Aug 18, 2022
0 parents commit ed96a07
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
Empty file added README.md
Empty file.
18 changes: 18 additions & 0 deletions layers.txt
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions src/database/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"id": 10,
"name": "Batman",
"age": "50",
"power": "rich"
}
]
Empty file added src/handler.js
Empty file.
Empty file added src/index.js
Empty file.

0 comments on commit ed96a07

Please sign in to comment.