{"id":31681356,"url":"https://github.com/romanslack/firstchat_backend","last_synced_at":"2025-10-08T07:48:28.305Z","repository":{"id":285984126,"uuid":"959517389","full_name":"RomanSlack/FirstChat_BackEnd","owner":"RomanSlack","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T18:55:41.000Z","size":420,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T20:02:55.269Z","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/RomanSlack.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":"2025-04-02T23:10:18.000Z","updated_at":"2025-04-10T18:55:44.000Z","dependencies_parsed_at":"2025-04-03T18:23:09.373Z","dependency_job_id":"5b3c0979-44fa-4b79-9f19-b89f5213203e","html_url":"https://github.com/RomanSlack/FirstChat_BackEnd","commit_stats":null,"previous_names":["romanslack/firstchat_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RomanSlack/FirstChat_BackEnd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanSlack%2FFirstChat_BackEnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanSlack%2FFirstChat_BackEnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanSlack%2FFirstChat_BackEnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanSlack%2FFirstChat_BackEnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RomanSlack","download_url":"https://codeload.github.com/RomanSlack/FirstChat_BackEnd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RomanSlack%2FFirstChat_BackEnd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278909712,"owners_count":26066887,"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-10-08T02:00:06.501Z","response_time":56,"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-10-08T07:48:09.759Z","updated_at":"2025-10-08T07:48:28.298Z","avatar_url":"https://github.com/RomanSlack.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FirstChat - Dating App First Message Generator\n\nA complete system for generating personalized first messages for dating apps, composed of three main components:\n\n## System Components\n\n### 1. Profile Scraper (`/scraper_layer`)\n- Extracts profile data from dating apps (currently Tinder)\n- Saves profile details and images to structured folders\n- Uses Playwright and Chrome for reliable profile extraction\n\n### 2. API Server (`/servers/rest_firstchat_api`)\n- FastAPI server that processes profile data and images\n- Generates personalized first messages using OpenAI GPT models\n- Provides a RESTful API for message generation\n\n### 3. User Interface (`/user_inteface`)\n- Flask web application with an intuitive UI\n- Allows users to upload images and enter profile information\n- Displays generated messages with detailed analytics\n\n## Quick Start Guide\n\n### Clone the Repository\n```bash\ngit clone \u003crepository-url\u003e\ncd FirstChat_BackEnd\n```\n\n### Setup and Run Each Component\n\n#### 1. Profile Scraper\n```bash\ncd scraper_layer\npip install -r requirements.txt\nplaywright install chromium\n./launch_chrome.sh  # In one terminal\n./run_scraper       # In another terminal\n```\n\n#### 2. API Server\n```bash\ncd servers/rest_firstchat_api\npip install -r requirements.txt\nexport GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json\nexport OPENAI_API_KEY=your_openai_api_key\nuvicorn app:app --host 0.0.0.0 --port 8002\n```\n\n#### 3. User Interface\n```bash\ncd user_inteface\npip install flask openai Pillow google-cloud-vision\nexport GOOGLE_APPLICATION_CREDENTIALS=/path/to/credentials.json\nexport OPENAI_API_KEY=your_openai_api_key\npython app.py\n```\n\n## System Requirements\n\n- Python 3.9+\n- Google Cloud Vision API credentials\n- OpenAI API key\n- Chrome/Chromium for the scraper component\n\n## Development Environment Setup\n\nFor a complete development environment, you can set up each component in sequence:\n\n1. **Set up environment variables**:\n   Create a `.env` file in each component directory with the required API keys.\n\n2. **Install all dependencies**:\n   ```bash\n   cd scraper_layer \u0026\u0026 pip install -r requirements.txt\n   cd ../servers/rest_firstchat_api \u0026\u0026 pip install -r requirements.txt\n   cd ../user_inteface \u0026\u0026 pip install flask openai Pillow google-cloud-vision\n   ```\n\n3. **Initialize the database** (if using one in the future):\n   Currently, the system does not use a persistent database, but stores extracted profiles in the filesystem.\n\n## Configuration\n\nEach component has its own configuration options:\n\n- **Scraper**: Edit `scraper_layer/config.py` to adjust scraper behavior\n- **API Server**: Configuration is primarily through environment variables \n- **User Interface**: Settings are defined in the Flask app (`user_inteface/app.py`)\n\n## Documentation\n\nFor detailed documentation on each component, refer to the README.md files in their respective directories:\n\n- [Scraper Documentation](scraper_layer/README.md)\n- [API Server Documentation](servers/rest_firstchat_api/README.md)\n\n## License\n\nProprietary - All rights reserved.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanslack%2Ffirstchat_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromanslack%2Ffirstchat_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromanslack%2Ffirstchat_backend/lists"}