{"id":27946680,"url":"https://github.com/tameronline/pro_product_pg","last_synced_at":"2025-05-07T13:57:01.890Z","repository":{"id":291709747,"uuid":"978497406","full_name":"TamerOnLine/pro_product_pg","owner":"TamerOnLine","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-07T10:00:33.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T13:56:56.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/TamerOnLine.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-06T04:42:02.000Z","updated_at":"2025-05-07T10:00:36.000Z","dependencies_parsed_at":"2025-05-06T06:49:02.970Z","dependency_job_id":null,"html_url":"https://github.com/TamerOnLine/pro_product_pg","commit_stats":null,"previous_names":["tameronline/pro_product_pg"],"tags_count":0,"template":false,"template_full_name":"TamerOnLine/pro_product","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fpro_product_pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fpro_product_pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fpro_product_pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TamerOnLine%2Fpro_product_pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TamerOnLine","download_url":"https://codeload.github.com/TamerOnLine/pro_product_pg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252892520,"owners_count":21820646,"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":[],"created_at":"2025-05-07T13:57:01.105Z","updated_at":"2025-05-07T13:57:01.874Z","avatar_url":"https://github.com/TamerOnLine.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🛒 Flask Product Manager - tameronline-pro_product\n\nA simple and professional product management system built with Python and Flask. It includes an admin panel, public product listing, image uploads, and SQLite-based storage.\n\n---\n\n## ✅ Main Features\n\n- 🔐 Admin dashboard with login protection\n- ➕ Add products with image, description, specs, and price\n- 🖼️ Upload and store product images in `static/uploads/`\n- 📝 View product details on a separate page\n- 🗂️ Admin page to manage (edit/delete) all products\n- 🧹 Button to reset the entire database\n- 🌐 Fully Arabic user interface with clean design\n\n---\n\n## 📁 Project Structure\n\n```\ntameronline-pro_product/\n├── myapp.py              # Main application entry point\n├── config.py             # App configuration\n├── requirements.txt      # Required packages\n├── instance/products.db  # SQLite database\n├── models/               # Product model definition\n├── routes/               # Admin and user routes\n├── templates/            # HTML templates for both admin and user views\n├── static/               # CSS and image uploads\n├── utils/logic/          # Helper modules (currently empty)\n└── .env                  # (Optional) Environment variables\n```\n\n---\n\n## ⚙️ Running Locally\n\n### 1. Clone the Repository:\n\n```bash\ngit clone https://github.com/your-username/tameronline-pro_product.git\ncd tameronline-pro_product\n```\n\n### 2. Create a Virtual Environment and Install Dependencies:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\npip install -r requirements.txt\n```\n\n### 3. Set Environment Variables:\n\nCreate a `.env` file with the following:\n\n```env\ncv_kay=your_secret_key_here\nADMIN_USERNAME=admin\nADMIN_PASSWORD=your_password\n```\n\n### 4. Run the App:\n\n```bash\npython myapp.py\n```\n\nOpen [http://localhost:8030](http://localhost:8030) in your browser.\n\n---\n\n## 🔐 Admin Login\n\n- Username: as set in `ADMIN_USERNAME` in `.env`\n- Password: as set in `ADMIN_PASSWORD` in `.env`\n\n---\n\n## 🗃️ Notes\n\n- Uses SQLite for local development\n- Images are saved under `static/uploads/` with unique names\n- Only valid image formats are accepted (png, jpg, jpeg, webp)\n- No categories, search, or API support yet\n\n---\n\n## 📌 Future Improvements\n\n- ✅ Add product categories\n- ✅ Implement search functionality\n- ✅ Create a RESTful API\n- ✅ Add Contact/About pages\n- ✅ Enable notifications (e.g., email)\n- ✅ Deploy to PythonAnywhere / Render\n\n---\n\n## 📄 License\n\nOpen-source for personal and educational use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fpro_product_pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftameronline%2Fpro_product_pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftameronline%2Fpro_product_pg/lists"}