{"id":24200016,"url":"https://github.com/elhussin/optical-","last_synced_at":"2026-05-08T14:07:34.773Z","repository":{"id":214179120,"uuid":"735569769","full_name":"Elhussin/optical-","owner":"Elhussin","description":"The program is a website specialized in eyeglass trading Products are organized and added in an organized manner. A system for electronic payment, order delivery and follow-up is also provided","archived":false,"fork":false,"pushed_at":"2024-12-08T22:42:18.000Z","size":3762,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-19T23:36:21.857Z","etag":null,"topics":["flask","mysql","online-store","python","web","web-development"],"latest_commit_sha":null,"homepage":"https://optical-sl8n.onrender.com/","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/Elhussin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2023-12-25T11:47:05.000Z","updated_at":"2024-12-22T11:01:00.000Z","dependencies_parsed_at":"2024-01-13T09:08:55.975Z","dependency_job_id":"68fd091d-78ad-4971-ba2b-7cf81fb54d2d","html_url":"https://github.com/Elhussin/optical-","commit_stats":null,"previous_names":["first-maker/optical-","elhussin/optical-"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Elhussin/optical-","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elhussin%2Foptical-","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elhussin%2Foptical-/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elhussin%2Foptical-/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elhussin%2Foptical-/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elhussin","download_url":"https://codeload.github.com/Elhussin/optical-/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elhussin%2Foptical-/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272878209,"owners_count":25008340,"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-08-30T02:00:09.474Z","response_time":77,"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":["flask","mysql","online-store","python","web","web-development"],"created_at":"2025-01-13T20:40:34.396Z","updated_at":"2026-05-08T14:07:29.746Z","avatar_url":"https://github.com/Elhussin.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n  # online stor for opical shop\noptical  online store \n#### Video Demo: \n \u003cURL https://www.youtube.com/watch?v=9s3_l0uM89U\u003e\n#### Description:\n\n## Table of Contents\n\n- [Introduction](#introduction)\n- [Installation](#installation)\n- [ Table_of_Content ](#Table_of_Content )\n- [Usage](#usage)\n- [License](#license)\n\n## Introduction\n\nThe program is a website specialized in eyeglass trading\nProducts are organized and added in an organized manner. A system for electronic payment, order delivery and follow-up is also provided\n## Installation\n\nProvide instructions on how to install your project:\n\n1. Clone the repository: `gh repo clone first-maker/optical-`\n2. Create a virtual environment: `python -m venv venv`\n3. Activate the virtual environment:\n   - On Windows: `venv\\Scripts\\activate`\n   - On macOS and Linux: `source venv/bin/activate`\n4. Install dependencies: `pip install -r requirements.txt`\n## Table_of_Content\nproject\n1. app.py \n     ###  Main function for the app\n\n2. datbas\n3. license.txt\n4. requirements.txt :\n   \u003eall pip will need it to start app uses\n   \u003e\n6. pyfile\n     ###All Python file will be in this direction\n   * addre.py\n     ### this file has one function \n     \u003eget_ip  : to get loctian datiles\n     \u003e\n     \u003eget_location : Handle location details\n     \u003e\n     \u003edatpaseSelect : To select user address details \n     \u003e\n     \u003eupdat_address  : to add Or edit The address\n     \u003e\n   * branch.py\n     ###  this file has one function\n     \u003eaddbranch : To add new company branch\n     \u003e\n   * brand.py\n       ###  this file has one function\n     \u003ebrandADD  :To add new  Brand\n     \u003e\n   * cart.py\n      ### this file has one function\n     \u003ehndell_dat :Handle cart items\n     \u003e\n     \u003e cartView :To view items in cart\n     \u003e\n   * copmany.py\n     ###  this file has one function\n     \u003ecompanys :To add new company \n     \u003e\n\n   * data.py\n     \u003e this file has  dictionaries for data static display\n     \u003e \n   * dp.dp\n     \u003eto declare database\n     \u003e\n   * helpers.py\n     ### this file has four  function\n     \u003eapology : To send erorr Message  \n     \u003elogin_required : To confirm user Login  \n     \u003epassword_confiarm :To confirm password requirement\n     \u003emessag :To send text Message \n\n   * model.py\n      ### this file has two  function\n     \u003e model: To add new  Model\n     \u003eupdateproduct :To  update   Model\n   * payment.py\n      ### this file has four  function \n     \u003epaypal_payment :to get  payment  then return answer for\n     \u003e\n     \u003ecapture_payment:To Handle payment request ,then will added order  details to orders table and invoices table\n     \u003e\n     \u003epaypal_capture_function :To get response details from paypal\n     \u003e\n     \u003eis_approved_payment:to confirm if payment request is approved or not\n     \u003e\n\n   * register.py\n     ### this file has two  function\n     \u003eregisters : to register users\n     \u003e\n     \u003elogins : to confirm users login\n     \u003e\n\n   * resetPassword.py\n       ### this file has one  function\n     \u003eresetPassword: to reset password\n     \u003e\n\n   * sqlRequest.py\n        ### this file has many function to request data from database\n     \u003ereadBroudectList\n     \u003e\n     \u003ecotegryList\n     \u003e\n     \u003ecotegryList_collection\n     \u003e\n     \u003eiteam_view\n     \u003e\n     \u003epaymentview_user\n     \u003e\n     \u003econifg_user\n     \u003e\n     \u003einvoiceDatiles\n     \u003e\n     \u003eorderTrack\n     \u003e\n     \u003emainInvoiceList\n     \u003e\n     \u003eresetPassword\n     \u003e\n     \u003esqliteHandel\n\n   * updates.py\n     ### this file has five  function\n     \u003eupdateCompany:To update company details\n     \u003e\n     \u003eupdateBrand : To update Branch details\n     \u003e\n     \u003eupdatTrack  : To update orders Track details\n     \u003eupdateBranch :To update Branch details\n     \u003e\n     \u003edeleteInvoice:To update Invoices details\n     \u003e\n\n   * user.py\n     ### this file two  function\n     \u003eadmin :Page for admins data\n     \u003e\n     \u003ebrofile : Page for users data\n     \u003e\n\n   * UserUpdate.py\n     ### this file one  function\n     \u003euserupdate : To update users details\n     \u003e\n   * Viwer.py\n     ### this file one  function\n     \u003eviwerData :to view all data for admins page\n     \u003e\n\n\n7. static\n    * imag:\n    \u003e this folder for static media used in app design \n         * sosial:\n            \u003e this folder for static media used for sosiaal media icon\n      \u003e \n   \n    * payment\n          \u003e this folder to save text file for all paymen transaction\n      \u003e\n      \n\n    * uploads\n      \u003ethis folder to save all files uploaded to app\n    * layout.js\n      \u003e JS file used for layout template\n      \u003e \n    * model.js\n      \u003eJS file used for model template\n      \u003e\n    * script.js\n      \u003eJS file used for all template\n      \u003e\n    * search.js\n      \u003eJS file used for search template\n      \u003e\n    * style.css\n      \u003eCSS file used for APP design\n      \u003e \n8. templates\n    ### this Folder has all html templates to will needed to view app\n   * add_company.html\n   * addJop.html\n   *addre.html\n   * admin.html\n   * branch.html\n   * brand.html\n   * cart.html\n   * email.html\n   * error.html\n   * help.html\n   * history.html\n   * index.html\n   * invoice.html\n   * layout.html\n   * learn.html\n   * login.html\n   * model.html\n   * netfectian.html\n   * newJop.html\n   * orderTrack.html\n   * ourBranch.html\n   * payhistory.html\n   * payment.html\n   * register.html\n   * reset.html\n   * search.html\n   * update.html\n   * updateBranch.html\n   * updateBrand.html\n   * updateCompany.html\n   * updateProduects.html\n   * updateTrack.html\n   * updatUser.html\n   * upload.html\n   * user.html\n   * viwer.html\n## Usage\n\nExplain how to use/run your Flask project:\n1. Run the Flask application:\n   ```bash\n   python app.py\n   ```to work flask with depage \n   flask --app  app.py --debug run\n\n## License\n```license.text\n© 2024 Copyright: Hussain Codes Company\n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felhussin%2Foptical-","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felhussin%2Foptical-","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felhussin%2Foptical-/lists"}