{"id":50673847,"url":"https://github.com/mdecker-mobilecomputing/ionic_zitatevonsupabase","last_synced_at":"2026-06-08T14:02:23.039Z","repository":{"id":363157897,"uuid":"1262128950","full_name":"MDecker-MobileComputing/Ionic_ZitateVonSupabase","owner":"MDecker-MobileComputing","description":"Ionic/Angular-App, die mit Capacitor-HTTP Zitate von einer auf Supabase gehosteten REST-API abruft","archived":false,"fork":false,"pushed_at":"2026-06-07T17:27:12.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-07T18:22:20.620Z","etag":null,"topics":["angular","github-actions","ionic-framework","supabase"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MDecker-MobileComputing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-07T16:00:00.000Z","updated_at":"2026-06-07T17:27:16.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/MDecker-MobileComputing/Ionic_ZitateVonSupabase","commit_stats":null,"previous_names":["mdecker-mobilecomputing/ionic_zitatevonsupabase"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MDecker-MobileComputing/Ionic_ZitateVonSupabase","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FIonic_ZitateVonSupabase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FIonic_ZitateVonSupabase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FIonic_ZitateVonSupabase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FIonic_ZitateVonSupabase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MDecker-MobileComputing","download_url":"https://codeload.github.com/MDecker-MobileComputing/Ionic_ZitateVonSupabase/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDecker-MobileComputing%2FIonic_ZitateVonSupabase/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34065354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","github-actions","ionic-framework","supabase"],"created_at":"2026-06-08T14:02:22.237Z","updated_at":"2026-06-08T14:02:23.031Z","avatar_url":"https://github.com/MDecker-MobileComputing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ionic-App \"Zitate von Supabase\" #\n\n\u003cbr\u003e\n\nDieses Repo enthält das Quellcode-Projekt für eine einfache Ionic/Angular-App, \ndie mit [CapacitorHttp](https://capacitorjs.com/docs/apis/http) von einer auf \n[Supabase](https://supabase.com/) gehosteten REST-API zufällig ausgewählte\nZitate abruft.\n\n\u003cbr\u003e\n\n![Screenshot](screenshot_1.png)\n\n\u003cbr\u003e\n\n----\n\n## Backend auf Supabase einrichten ##\n\n\u003cbr\u003e\n\nDie folgende SQL-Befehle sind auf der Web-Oberfläche im \"SQL Editor\" auszuführen\n(alle Befehle können mit *einem* Klick auf den \"Run\"-Button auf einmal ausgeführt werden).\n\n\u003cbr\u003e\n\n```\n-- 1) Tabelle anlegen\nCREATE TABLE IF NOT EXISTS public.zitate (\n\tid SERIAL PRIMARY KEY,\n\tzitat TEXT NOT NULL,\n\tautor TEXT NOT NULL\n);\n\n-- 2) Optional: Beispiel-Daten\nINSERT INTO public.zitate (zitat, autor)\nVALUES\n\t('Talk is cheap. Show me the code.', 'Linus Torvalds'),\n\t('Programs must be written for people to read, and only incidentally for machines to execute.', 'Harold Abelson'),\n\t('Simplicity is prerequisite for reliability.', 'Edsger W. Dijkstra')\nON CONFLICT DO NOTHING;\n\n-- 3) Sicherstellen, dass \"Row Level Security\" (RLS) eingeschaltet ist\nALTER TABLE public.zitate ENABLE ROW LEVEL SECURITY;\n\n-- 4) Funktion anlegen:\n--    SECURITY DEFINER, damit die Funktion mit den Rechten des Owners läuft\n--    SET search_path = '' laut Supabase-Empfehlung\nCREATE OR REPLACE FUNCTION public.get_zufaelliges_zitat()\nRETURNS TABLE(zitat TEXT, autor TEXT)\nLANGUAGE plpgsql\nSECURITY DEFINER\nSET search_path = ''\nAS $$\nBEGIN\n  RETURN QUERY\n\tSELECT z.zitat, z.autor\n\t\tFROM public.zitate z\n\t\tORDER BY RANDOM()\n\t\tLIMIT 1;\nEND;\n$$;\n\n-- 5) Direkte Rechte auf die Tabelle für anon entziehen\nREVOKE ALL ON TABLE public.zitate FROM anon;\nREVOKE ALL ON TABLE public.zitate FROM authenticated;\n```\n\n\u003cbr\u003e\n\n----\n\n## License ##\n\n\u003cbr\u003e\n\nSee the [LICENSE file](LICENSE.md) for license rights and limitations (BSD 3-Clause License) for the files in this repository.\n\n\u003cbr\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdecker-mobilecomputing%2Fionic_zitatevonsupabase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdecker-mobilecomputing%2Fionic_zitatevonsupabase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdecker-mobilecomputing%2Fionic_zitatevonsupabase/lists"}