{"id":39404111,"url":"https://github.com/eddyizm/quotes","last_synced_at":"2026-01-18T03:27:45.581Z","repository":{"id":246808824,"uuid":"601457655","full_name":"eddyizm/quotes","owner":"eddyizm","description":"FastAPI quote app (rest api and jinja html pages)","archived":false,"fork":false,"pushed_at":"2025-04-29T14:53:40.000Z","size":402,"stargazers_count":0,"open_issues_count":19,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T15:59:28.611Z","etag":null,"topics":["caddy","fastapi","frontend","html","pod","podman","postgresql","python3","rest-api","webapp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eddyizm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-02-14T05:18:55.000Z","updated_at":"2025-03-26T20:38:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"30ed1b8f-d8d2-44c5-9054-daed7533ca71","html_url":"https://github.com/eddyizm/quotes","commit_stats":null,"previous_names":["eddyizm/quotes"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/eddyizm/quotes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyizm%2Fquotes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyizm%2Fquotes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyizm%2Fquotes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyizm%2Fquotes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eddyizm","download_url":"https://codeload.github.com/eddyizm/quotes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eddyizm%2Fquotes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528038,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["caddy","fastapi","frontend","html","pod","podman","postgresql","python3","rest-api","webapp"],"created_at":"2026-01-18T03:27:45.447Z","updated_at":"2026-01-18T03:27:45.555Z","avatar_url":"https://github.com/eddyizm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quotes\nFastAPI quote app\n\n## local set up \nset up local pod, container and db. \n`podman pod create -p 8000:8000 -p 5432:5432 --name=quote_pod \u0026\u0026 podman pod start quote_pod`\n`podman build -t quote-app -f Dockerfile --ignorefile .dockerignore`\n`podman run -d --pod=quote_pod --name=postgres_db -v dbdata:/var/lib/postgresql/data  --env-file src/core/.env docker.io/postgres:latest`\n`podman run -d --pod=quote_pod --name=quote-app quote-app`\n\n# Podman   \n\nSet up pod to put all related app containers together, like docker compose.  Note mapped ports are only declared at the top level , rather the pod the containers are in.\n\n// moving this pod building to a start up script\n\noracle vps setup\n\n```  \nsudo firewall-cmd --permanent --zone=public --add-port=80/tcp\nsudo firewall-cmd --permanent --zone=public --add-port=443/tcp\nsudo firewall-cmd --runtime-to-permanent\n```\n\n### create systemd services\nUsing the user flag, these generated files get stored here [podman docs](https://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html)  \n\nThese commands only work after having everything up and running. Which then need to be removed. \n\n`podman generate systemd --files --name quote_pod`\n\ncopy files\n\n`mv -v *.service ~/.config/systemd/user/`\n\nenable/disable\n`systemctl --user enable pod-quote_pod.service`\n\nenable linger  \n`loginctl enable-linger $USER`\n\nand start\n`systemctl --user start pod-quote_pod.service`\n\ncheck running\n`systemctl --user --type=service --state=running`\n\n\n### Docker \n[Docker set up here](DOCKER.md)\n\n## running jobs \n\ncall scraper via container. Use this in the crontab job. \n\n`podman exec quote-app python -m scraper`\n\n### check db in container\n\n`psql -U $POSTGRES_USER $POSTGRES_DB`\n\n### restore backup  \n`gunzip -c ragingdharmaDbBackup_2025-04-25.sql.tar.gz | podman exec -i postgres_db psql -U root -d postgres`\n\n### tests\n\nInitital testing is against a local container postgres using `pytest` and only testing the open api endpoints atm. \n\nTODO: test the jinja templates, test auth and protected routes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyizm%2Fquotes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddyizm%2Fquotes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddyizm%2Fquotes/lists"}