{"id":18373086,"url":"https://github.com/ahmedsamir45/order-system","last_synced_at":"2026-04-18T11:05:43.415Z","repository":{"id":251292022,"uuid":"835996835","full_name":"ahmedsamir45/order-system","owner":"ahmedsamir45","description":"product order system using flask","archived":false,"fork":false,"pushed_at":"2024-10-12T20:06:12.000Z","size":6557,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-30T04:45:20.459Z","etag":null,"topics":["css","dotenv","flask","flask-sqlalchemy","html","ordermanagement"],"latest_commit_sha":null,"homepage":"https://youtu.be/EufpZDcrhhc","language":"HTML","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/ahmedsamir45.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-07-31T00:34:50.000Z","updated_at":"2024-10-12T20:06:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"726832d4-e237-4b37-b099-a11c4c5da907","html_url":"https://github.com/ahmedsamir45/order-system","commit_stats":null,"previous_names":["ahmedsamir45/order-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ahmedsamir45/order-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedsamir45%2Forder-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedsamir45%2Forder-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedsamir45%2Forder-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedsamir45%2Forder-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedsamir45","download_url":"https://codeload.github.com/ahmedsamir45/order-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedsamir45%2Forder-system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["css","dotenv","flask","flask-sqlalchemy","html","ordermanagement"],"created_at":"2024-11-06T00:08:34.209Z","updated_at":"2026-04-18T11:05:43.378Z","avatar_url":"https://github.com/ahmedsamir45.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Order System Application\n\nThis is a simple Flask-based e-commerce application that allows users to browse products, place orders, and provides an admin interface for managing products and orders.\n\n## Features\n\n- **Product Browsing:** Users can view all available products and search for specific items.\n- **Product Details:** Each product has a dedicated page with details and an option to place an order.\n- **Admin Interface:** Admins can log in, add new products, update existing products, and delete products.\n- **Order Management:** Orders placed by users are stored in the database for administrative review.\n\n## Technologies Used\n\n- **Flask:** The web framework for building the application.\n- **SQLAlchemy:** ORM for database management.\n- **HTML/CSS:** For front-end design.\n- **Bootstrap:** For responsive design.\n- **Werkzeug:** For secure file handling.\n\n## Setup Instructions\n\n### Prerequisites\n\n- Python 3.x\n- Flask\n- SQLAlchemy\n- A database (SQLite or any other supported by SQLAlchemy)\n- [dotenv](https://pypi.org/project/python-dotenv/) for environment variable management\n\n### Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/ahmedsamir45/order-system.git\n    cd order-system\n    ```\n\n2. Install the required packages:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n3. Set up environment variables by creating a `.env` file in the root directory:\n    ```plaintext\n    USERNAME1=your_username\n    PASSWORD=your_password\n    UPLOAD_FOLDER=/path/to/upload/folder\n    ```\n\n4. Initialize the database (create the necessary tables):\n    ```bash\n    flask shell\n    from app import db\n    db.create_all()\n    exit()\n    ```\n\n5. Run the application:\n    ```bash\n    flask run\n    ```\n\n6. Open your browser and navigate to `http://127.0.0.1:5000/`.\n\n## Routes\n\n| Route                 | Method | Description                               |\n|-----------------------|--------|-------------------------------------------|\n| `/`                   | GET    | Home page displaying all products.       |\n| `/search`             | GET    | Search for products by name.             |\n| `/product/\u003cint:id\u003e`   | GET, POST | View product details and place an order. |\n| `/login`              | GET, POST | Login page for admin users.              |\n| `/logout`             | GET    | Logout and redirect to home.             |\n| `/admin`              | GET, POST | Admin dashboard to manage products and orders. |\n| `/admin/update/\u003cint:id\u003e` | GET, POST | Update product details.                  |\n| `/admin/delete/\u003cint:id\u003e` | POST  | Delete a product.                        |\n| `/about`              | GET    | About page.                               |\n| `/contact`            | GET    | Contact page.                             |\n\n## Contributing\n\nContributions are welcome! Please fork the repository and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- [Flask Documentation](https://flask.palletsprojects.com/)\n- [SQLAlchemy Documentation](https://docs.sqlalchemy.org/)\n- [Bootstrap Documentation](https://getbootstrap.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedsamir45%2Forder-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedsamir45%2Forder-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedsamir45%2Forder-system/lists"}