{"id":24458287,"url":"https://github.com/thedeadcoder/omni_backend","last_synced_at":"2025-08-16T05:38:27.375Z","repository":{"id":244105635,"uuid":"814147794","full_name":"TheDeadcoder/omni_backend","owner":"TheDeadcoder","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-14T05:48:13.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T08:43:20.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheDeadcoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-06-12T12:36:02.000Z","updated_at":"2024-06-14T05:48:16.000Z","dependencies_parsed_at":"2025-03-14T08:43:10.444Z","dependency_job_id":"7be99a03-7dd8-455d-a394-20a3811e4559","html_url":"https://github.com/TheDeadcoder/omni_backend","commit_stats":null,"previous_names":["thedeadcoder/omni_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/TheDeadcoder/omni_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDeadcoder%2Fomni_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDeadcoder%2Fomni_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDeadcoder%2Fomni_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDeadcoder%2Fomni_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheDeadcoder","download_url":"https://codeload.github.com/TheDeadcoder/omni_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheDeadcoder%2Fomni_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270672864,"owners_count":24626033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"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":[],"created_at":"2025-01-21T03:13:39.986Z","updated_at":"2025-08-16T05:38:27.351Z","avatar_url":"https://github.com/TheDeadcoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tech-stack Of the Project\n\n- [Supabase](https://supabase.com/)\n- [Python](https://www.python.org/)\n- [FastApi](https://fastapi.tiangolo.com/) LLM model\n- [Alembic](https://alembic.sqlalchemy.org/en/latest/)\n\n# Set up and usage\n\n## Cloning the repository\n\nYou can clone the repository by simply\n\n```bash\ngit clone https://github.com/TheDeadcoder/omni_backend.git\n```\n\n## Making Python Virtual Environment\n\n```bash\npython3 -m venv omni\n\nsource omni/bin/activate\n```\n\n## Set Up The project\n\nOnce you've cloned the project, install the required dependencies with\n\n```bash\npip install -r requirements.txt\n```\n\n## Set up alembic\n\n```bash\nalembic init alembic\n```\n\n\u003e go to alembic.ini file in your project directory. \\\n\u003e set sqlalchemy.url = postgresql://user:password@host/dbname \\\n\u003e go to alembic.ini file in your project directory. \\\n\u003e sqlalchemy.url = postgresql://user:password@host/dbname \\\n\u003e change env.py as following:\n\n```\nfrom logging.config import fileConfig\nfrom sqlalchemy import engine_from_config, pool\nfrom alembic import context\nfrom models import Base # Import your models here\n\nconfig = context.config\n\nif config.config_file_name is not None:\nfileConfig(config.config_file_name)\n\ntarget_metadata = Base.metadata # Set the target metadata to your Base metadata\n\ndef run_migrations_offline() -\u003e None:\nurl = config.get_main_option(\"sqlalchemy.url\")\ncontext.configure(\nurl=url,\ntarget_metadata=target_metadata,\nliteral_binds=True,\ndialect_opts={\"paramstyle\": \"named\"},\n)\n\n    with context.begin_transaction():\n        context.run_migrations()\n\ndef run_migrations_online() -\u003e None:\nconnectable = engine_from_config(\nconfig.get_section(config.config_ini_section, {}),\nprefix=\"sqlalchemy.\",\npoolclass=pool.NullPool,\n)\n\n    with connectable.connect() as connection:\n        context.configure(\n            connection=connection, target_metadata=target_metadata\n        )\n\n        with context.begin_transaction():\n            context.run_migrations()\n\nif context.is_offline_mode():\nrun_migrations_offline()\nelse:\nrun_migrations_online()\n```\n\n\u003e Finally Run in terminal\n\n```bash\nalembic revision --autogenerate -m \"commit message\"\nalembic upgrade head\n```\n\n## Run the application with\n\n```bash\nuvicorn main:app\n```\n\n\u003e You can then go to the /docs endpoint to test API\n\n## Environment file\n\n\u003e You will be needing an environment file copnsisting of the following entities\n\n```bash\nSUPABASE_DATABASE_URL = \"******\"\nSUPABASE_URL = \"******\"\nSUPABASE_API_KEY = \"******\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedeadcoder%2Fomni_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedeadcoder%2Fomni_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedeadcoder%2Fomni_backend/lists"}