{"id":21,"date":"2025-10-06T09:48:03","date_gmt":"2025-10-06T09:48:03","guid":{"rendered":"https:\/\/docs.pedagotchi.de\/?post_type=docs&#038;p=21"},"modified":"2025-10-07T14:41:53","modified_gmt":"2025-10-07T14:41:53","password":"","slug":"backend","status":"publish","type":"docs","link":"https:\/\/docs.pedagotchi.de\/index.php\/docs\/backend\/","title":{"rendered":"Backend"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Directus als Headless\u2011Backend<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Directus stellt eine generische API\u2011Schicht \u00fcber der Datenbank bereit. Inhalte, Relationen, Rollen\/Rechte und Dateiverwaltung werden dort modelliert und administriert.<\/li>\n\n\n\n<li>Collections entsprechen fachlichen Entit\u00e4ten. Beziehungen (1:n, n:m) werden in Directus konfiguriert, inklusive Validierungen und Policies.<\/li>\n\n\n\n<li>Authentifizierung (z. B. E\u2011Mail\/Passwort, Token) und Rollen\u2011\/Berechtigungsmanagement sind serverseitig geregelt. So lassen sich Lese\u2011\/Schreibrechte pro Rolle und Collection granular steuern.<\/li>\n\n\n\n<li>Dateien\/Assets (Bilder, Audio, Video) werden in Directus gespeichert und \u00fcber generierte URLs ausgeliefert. Die App bindet diese URLs in Komponenten ein (z. B.\u00a0<code>expo-video<\/code>,\u00a0<code>expo-audio<\/code>).<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Umgebung und Konfiguration<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Basis\u2011URL, Projekt\u2011IDs und ggf. API\u2011Keys werden als Umgebungsvariablen\/Configs definiert (Dev\/Stage\/Prod). So kann die App ohne Code\u00e4nderung zwischen Umgebungen wechseln.<\/li>\n\n\n\n<li>Die App erwartet stabile Schemas\/Collections in Directus; Anpassungen werden per Git versioniert und mit Snapshots dokumentiert.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Directus als Headless\u2011Backend Umgebung und Konfiguration<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"doc_category":[3],"doc_tag":[],"class_list":["post-21","docs","type-docs","status-publish","hentry","doc_category-systemueberblick"],"year_month":"2026-05","word_count":138,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"jon","author_nicename":"jon","author_url":"https:\/\/docs.pedagotchi.de\/index.php\/author\/jon\/"},"doc_category_info":[{"term_name":"System\u00fcberblick","term_url":"https:\/\/docs.pedagotchi.de\/index.php\/docs-category\/systemueberblick\/"}],"doc_tag_info":[],"_links":{"self":[{"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/docs\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":2,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/docs\/21\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/docs\/21\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/doc_category?post=21"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.pedagotchi.de\/index.php\/wp-json\/wp\/v2\/doc_tag?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}