|
||
---|---|---|
.. | ||
db | ||
ui | ||
README.md |
README.md
FRAMEWORKS AND DRIVERS
The outermost layer of the model in Figure 22.1 is generally composed of frameworks and tools such as the database and the web framework. Generally you don’t write much code in this layer, other than glue code that communicates to the next circle inward. The frameworks and drivers layer is where all the details go. The web is a detail. The database is a detail. We keep these things on the outside where they can do little harm.
Aufgabe
Anforderungen:
Implementierungen:
- UI: Die UI ist ein Framework. Innerhalb der UI ist es möglich ebenfalls Clean Architecture zu verwenden. In diesem Fall wird MVC verwendet. Implementiere die
createUser
-Methode inconroller.js
um einen User über die UI anzulegen. - DB: Die Datenbank ist ein Driver. Um einen User anlegen zu können wird eine passende Tabelle in der Datenbank benötigt. Lege diese über das
db/db_setup.py
script an. Überpython setup_db.py
insrc
kann die Datenbank neu aufgesetzt werden.