{"id":16132553,"url":"https://github.com/brylie/langflow-fastapi-htmx","last_synced_at":"2025-03-18T15:30:25.703Z","repository":{"id":246640201,"uuid":"821716192","full_name":"brylie/langflow-fastapi-htmx","owner":"brylie","description":"Langflow chat proxy and frontend using FastAPI and HTMX","archived":false,"fork":false,"pushed_at":"2024-07-11T21:32:58.000Z","size":59,"stargazers_count":7,"open_issues_count":16,"forks_count":4,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-10T22:31:09.955Z","etag":null,"topics":["chatbot","chatgpt","chromadb","fastapi","htmx","llm","retrieval-augmented-generation"],"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/brylie.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}},"created_at":"2024-06-29T08:26:19.000Z","updated_at":"2024-10-07T21:10:59.000Z","dependencies_parsed_at":"2024-06-29T10:25:12.631Z","dependency_job_id":"e007d145-4157-4b6b-b558-60ce42fe1a0d","html_url":"https://github.com/brylie/langflow-fastapi-htmx","commit_stats":null,"previous_names":["brylie/langflow-fastapi-htmx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brylie%2Flangflow-fastapi-htmx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brylie%2Flangflow-fastapi-htmx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brylie%2Flangflow-fastapi-htmx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brylie%2Flangflow-fastapi-htmx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brylie","download_url":"https://codeload.github.com/brylie/langflow-fastapi-htmx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221713349,"owners_count":16868245,"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","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":["chatbot","chatgpt","chromadb","fastapi","htmx","llm","retrieval-augmented-generation"],"created_at":"2024-10-09T22:30:46.959Z","updated_at":"2024-10-27T17:52:49.524Z","avatar_url":"https://github.com/brylie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat Application with FastAPI and HTMX\n\nThis project is a simple chat application built with FastAPI for the backend and HTMX for dynamic frontend updates.\n\n## Prerequisites\n\n- Python 3.10 or higher\n- pip (Python package installer)\n\n## Setup Instructions\n\nFollow these steps to set up and run the project on your local machine.\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/brylie/langflow-fastapi-htmx.git\ncd langflow-fastapi-htmx\n```\n\n### 2. Create a Virtual Environment\n\n#### Windows\n```bash\npython -m venv venv\n```\n\n#### macOS and Linux\n```bash\npython3 -m venv venv\n```\n\n### 3. Activate the Virtual Environment\n\n#### Windows\n```bash\nvenv\\Scripts\\activate\n```\n\n#### macOS and Linux\n```bash\nsource venv/bin/activate\n```\n\n### 4. Install Dependencies\n\nWith the virtual environment activated, install the project dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n### 5. Run the Application\n\nStart the FastAPI server using Uvicorn:\n\n```bash\nuvicorn chat:app --reload\n```\n\nThe `--reload` flag enables auto-reloading on code changes, which is useful for development.\n\n### 6. Access the Application\n\nOpen your web browser and navigate to:\n\n```\nhttp://127.0.0.1:8000\n```\n\nYou should now see the chat interface and be able to interact with the chatbot.\n\n## Continuous Integration (CI) Process\n\nWe use GitHub Actions to automatically run our pytest suite on every pull request to the main branch. This ensures that all tests pass before changes can be merged.\n\n### CI Status Badge\n\n![CI Status](https://github.com/brylie/langflow-fastapi-htmx/actions/workflows/pytest.yml/badge.svg)\n\n## Development\n\n- The main application code is in `chat.py`.\n- HTML templates are stored in the `templates` directory.\n- Static files (CSS, JavaScript) are in the `static` directory.\n\n## Running Tests\n\nTo run tests, use the following command:\n\n```bash\npytest\n```\n\nThis will execute all tests in the `tests/` directory. For measuring test coverage, you can use `pytest-cov` by running:\n\n```bash\npytest --cov=app\n```\n\nThis command will provide a report on the test coverage for the application.\n\n## Troubleshooting\n\nIf you encounter any issues:\n\n1. Ensure you're using Python 3.10 or higher.\n2. Make sure your virtual environment is activated when installing dependencies and running the app.\n3. Check that all required dependencies are installed correctly.\n4. If you encounter any \"Module not found\" errors, try reinstalling the dependencies.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\n[MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrylie%2Flangflow-fastapi-htmx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrylie%2Flangflow-fastapi-htmx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrylie%2Flangflow-fastapi-htmx/lists"}