{"id":28387338,"url":"https://github.com/athari22/cafes-website","last_synced_at":"2026-04-16T12:01:55.128Z","repository":{"id":294622261,"uuid":"987559741","full_name":"Athari22/Cafes-Website","owner":"Athari22","description":"A web application to discover cafes with WiFi amenities built with Flask.","archived":false,"fork":false,"pushed_at":"2025-05-21T09:08:35.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-20T15:05:00.669Z","etag":null,"topics":["chat-application","flask","flask-application","flask-sqlalchemy","python","web-application"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Athari22.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,"zenodo":null}},"created_at":"2025-05-21T08:52:50.000Z","updated_at":"2025-05-21T09:08:39.000Z","dependencies_parsed_at":"2025-05-21T09:54:41.452Z","dependency_job_id":"2191360b-9d3e-456e-896d-1d3936f12a15","html_url":"https://github.com/Athari22/Cafes-Website","commit_stats":null,"previous_names":["athari22/cafes-website"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Athari22/Cafes-Website","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Athari22%2FCafes-Website","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Athari22%2FCafes-Website/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Athari22%2FCafes-Website/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Athari22%2FCafes-Website/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Athari22","download_url":"https://codeload.github.com/Athari22/Cafes-Website/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Athari22%2FCafes-Website/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31884929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T11:36:10.202Z","status":"ssl_error","status_checked_at":"2026-04-16T11:36:09.652Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chat-application","flask","flask-application","flask-sqlalchemy","python","web-application"],"created_at":"2025-05-30T17:11:20.431Z","updated_at":"2026-04-16T12:01:55.106Z","avatar_url":"https://github.com/Athari22.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cafe \u0026 Wifi ☕📶\r\n\r\nA responsive web application that helps users discover and manage cafes with essential amenities like WiFi, power sockets, restrooms, and more.\r\n\r\n## Features\r\n\r\n- 🔍 **Search Cafes**: Filter cafes by location.\r\n- 🎲 **Random Cafe**: Get a featured cafe suggestion.\r\n- ➕ **Add New Cafe**: Submit cafe details with amenities.\r\n- ✏️ **Update Price**: Modify the coffee price for any cafe.\r\n- 🗑️ **Delete Cafe**: Securely remove a cafe with API key protection.\r\n- 💬 **Chatbot Assistant**: Ask questions about cafes, amenities, and features.\r\n\r\n## Tech Stack\r\n\r\n- **Frontend**: HTML, CSS (Bootstrap 5), JavaScript\r\n- **UI Framework**: Bootstrap 5 + Bootstrap Icons\r\n- **Interactive Features**: Modals, cards, form validation, dynamic DOM updates\r\n- **Backend (assumed)**: RESTful API endpoints (e.g., `/all`, `/add`, `/random`, `/search`, `/update-price`, `/report-closed`)\r\n\r\n## How It Works\r\n\r\n- **Dynamic Loading**: On page load, cafes are fetched from `/all` and displayed.\r\n- **Random Selection**: A random cafe is retrieved from `/random`.\r\n- **Add Cafe**: The \"Add New Cafe\" modal allows users to enter data and submit it via `POST` to `/add`.\r\n- **Update/Delete**: Actions like updating price or deleting a cafe use modals and API calls to backend endpoints.\r\n\r\n## File Structure\r\n````\r\nCafe-Wifi/\r\n│\r\n├── main.py # Flask application\r\n├── requirements.txt # Dependencies\r\n├── README.md # Project documentation\r\n│\r\n├── instance/\r\n│ └── cafes.db # SQLite database\r\n│\r\n└── templates/\r\n└── index.html # Main frontend template\r\n````\r\n## 🔧 Setup Instructions\r\n\r\n1. **Clone the Repository**\r\n\r\n```bash\r\ngit clone https://github.com/your-username/cafe-wifi.git\r\ncd cafe-wifi\r\n```\r\n\r\n2. Create a Virtual Environment\r\n\r\n```bash\r\npython -m venv venv\r\nsource venv/bin/activate  # On Windows: venv\\\\Scripts\\\\activate\r\n```\r\n\r\n3. Install Dependencies\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n4. Run the App\r\n```bash\r\npython main.py\r\n```\r\n\r\n## 🗄️Backend API Endpoints\r\n\r\n| Method | Endpoint              | Description                      |\r\n| ------ | --------------------- | -------------------------------- |\r\n| GET    | `/all`                | Get all cafes                    |\r\n| GET    | `/random`             | Get a random cafe                |\r\n| GET    | `/search?loc=...`     | Search cafes by location         |\r\n| POST   | `/add`                | Add a new cafe                   |\r\n| PATCH  | `/update-price/\u003cid\u003e`  | Update coffee price              |\r\n| DELETE | `/report-closed/\u003cid\u003e` | Delete a cafe (requires API key) |\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathari22%2Fcafes-website","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathari22%2Fcafes-website","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathari22%2Fcafes-website/lists"}