{"id":20816635,"url":"https://github.com/alisharify7/food-ordering-app","last_synced_at":"2025-10-08T18:10:22.923Z","repository":{"id":203721500,"uuid":"709927745","full_name":"alisharify7/Food-Ordering-App","owner":"alisharify7","description":"a simple yet powerful Food Ordering web Application for Employees (free and open sources)","archived":false,"fork":false,"pushed_at":"2024-12-17T17:31:25.000Z","size":48327,"stargazers_count":7,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T23:15:17.657Z","etag":null,"topics":["bootstrap","celery","chartjs","css","flask","flask-application","flask-captcha2","flask-migrate","flask-session","flask-sqlalchemy","flask-web","flask-wtf","html","javascript","jquery","momentjs","mysql","python3","redis","webapp"],"latest_commit_sha":null,"homepage":"https://github.com/alisharify7/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alisharify7.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,"zenodo":null}},"created_at":"2023-10-25T17:09:58.000Z","updated_at":"2025-04-08T17:13:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c3f6e12-83a1-4bd1-9f96-d682de1f1d20","html_url":"https://github.com/alisharify7/Food-Ordering-App","commit_stats":null,"previous_names":["alisharify7/food-ordering-app"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alisharify7/Food-Ordering-App","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisharify7%2FFood-Ordering-App","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisharify7%2FFood-Ordering-App/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisharify7%2FFood-Ordering-App/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisharify7%2FFood-Ordering-App/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alisharify7","download_url":"https://codeload.github.com/alisharify7/Food-Ordering-App/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alisharify7%2FFood-Ordering-App/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278990357,"owners_count":26081261,"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":["bootstrap","celery","chartjs","css","flask","flask-application","flask-captcha2","flask-migrate","flask-session","flask-sqlalchemy","flask-web","flask-wtf","html","javascript","jquery","momentjs","mysql","python3","redis","webapp"],"created_at":"2024-11-17T21:35:47.004Z","updated_at":"2025-10-08T18:10:22.889Z","avatar_url":"https://github.com/alisharify7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### *** this branch is old, new version is on  new_design branch ***\n\n\n# اتوماسیون تغذیه کارمندان\n### سیستم اتوماسیون تغذیه یا سلف سرویس در واقع یک نوع از سیستم جامع تحویل غذا است که پرسنل و دانشجویان می توانند به منظور سفارش و صرف غذا در سازمان های دولتی و خصوصی و همچنین دانشگاه ها از این سیستم استفاده کنند.\n\n\n  \n  \u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/alisharify7/Food-Ordering-App\"\u003e\n  \n  \n  \u003cimg alt=\"GitHub contributors\" src=\"https://img.shields.io/github/contributors/alisharify7/Food-Ordering-App\"\u003e\n  \u003cimg alt=\"\" src=\"docs/database.png\"\u003e\n  \n\nTech Stack:\n      \n      python3\n          jinja2\n          sms_ir-python\n          requests\n          Khayyam\n          celery\n      Flask\n        Flask-Captcha2\n        Flask-Sqlalchemy\n        Flask-Session\n        Flask-Wtf\n        Flask-Migrate\n        Flask-RQ\n        Flask-Mail\n      Redis \n      Mysql\n        PyMySQL\n      Html\n      Css\n          Bootstrap 5.2\n          Bootstrap Icon 1.10\n      Javascript\n          Chart js\n          Moment js\n          SweetAlert2 js\n          Jquery js\n          PersianDatePicker js\n          \n        \n\n\n### Persian Version of readme \u003ca href=\"./docs/HELP-FA.md\"\u003eClick\u003c/a\u003e\n## virtual environment:\n\n      Python3 -m venv venv\n      or \n      python -m vevn venv\n\n\n## activate:\n\n      source ./venv/bin/active\n      or\n      .\\venv\\Scripts\\activate.bat\n\n## Install dependencies:\n\n      pip install -r requirements.txt\n      \n\n\n\n## Configurations and Settings:\n- before starting the app, you should do some steps\n- first create your own config file with below command:\n \n  \n### Linux - Mac \n    cp .env.sample .env \n\n### Windows\n    copy .env.sample .env\n\n- then open the .env file and fill in all the required fields \n- the required files include the database configuration, admin configuration, and SecretKey\n\n\n- after these steps you have to run below commands for SMS_IR config file\n\n### Linux - Mac\n    cp FoodyConfig/StaticConfig/SMS_IR_Config.py.sample FoodyConfig/StaticConfig/SMS_IR_Config.py\n### Windows\n    copy FoodyConfig/StaticConfig/SMS_IR_Config.py.sample FoodyConfig/StaticConfig/SMS_IR_Config.py\n\n- and then open FoodyConfig/StaticConfig/SMS_IR_Config.py and replace your template id (FROM SMS_IR) with fake one in file\n\n\n- then init and migrate db with below commands:\n        \n      # remember at this point you should create a database (utf8mb4_persian_ci)\n      # and also put the database name in .env file before running the below commands\n        \n      flask db init\n      flask db migrate\n      flask db upgrade\n\n- to change the sections, simply open FoodyConfig/StaticConfig/Sections.py and replace all Sections with your own Company Sections (this required a little bit knowledge of Python Dict )\n- one last command is init settings:\n      \n        flask create init_setting\n- this command update database with setting file\n\n- simply run the following command :\n\n        flask run [--port int:portNumber] [--debug] [ --reload ] [-- with-threads OR --without-threads]\n        or \n        python app.py\n\n## create superuser account:\nfor creating admin Account go to root of project and run below commands :\n      \n      flask create superuser [--help]\n\n\n## Admin Panel\nFor the admin panel URL, there is a key in the .env file called ADMIN_LOGIN_TOKEN. You should remember that token because you have to pass that token to a special endpoint every time you want to log in to the admin panel.\n\n### Admin Login URL:\n\n- www.domain.tld/auth/admin/login/\u003ctoken\u003e\n- 127.0.0.1:8000/auth/admin/login/\u003ctoken\u003e\n\n### Default Token:\nThe default token is 123654. So, the admin URL login with the default token is:\n\n- www.domain.tld/auth/admin/login/123654\n- 127.0.0.1:8000/auth/admin/login/123654\n\n## Nginx Config:\nWhen the application is running with Debug=True (APP-DEBUG property in the .env file), the application itself serves static files locally. However, when the debug mode is set to False, the application no longer serves static files, and Nginx serves them for you. Therefore, if the app's debug mode is set to False, you need to create a reverse proxy and add some configuration to your web server so that the app can render static files correctly. \n\n## liara deploy:\nthis web application configure for deploying to liara.ir\nif you want to use another pass Service provider make sure, to change nginx config\n\n## liara Disk:\nthis app required a disk Volume to save images food \n\nfor this app configure to point to a disk called #Media \n\nso don't forget to create a Disk for this (recommended size: 1G)\n\n\n\n## CLI Commands :\n\n### - create cli:\n    flask create init_setting [--help]\nthis command is super important because this command insert all sections,days in database  \nwhen ever you add new item to sections you have to run this command\n\n    flask create superuser [--help]\nUse this command for adding new admin to database\n\n    flask create fakeuser [--help]\nadding Fake users to app [for development purpose]\n\n### - status cli:\n\n    flask status users [--help]\nthis command show you information about users in app (all users, active users, ...)\n  \n\n    flask status admins [--help]\n\nthis command show you information abut admins in app (all admins, active admins, ...)\n\n\n    flask status orders [--help]\n\nthis command show you information abot orders (all orders, today orders, ...)\n    \n    \n\n\n\n\n\n### Admin Panel\n\u003cimg src=\"./docs/demo/admin-login.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-index.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-index1.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-all-users.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-all-users-dropup.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-all-foods.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-add-food.png\"\u003e\n\u003cimg src=\"./docs/demo/ADMIN-TODAY-ORDER.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-section.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-sms-today-send.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-send-sms-all.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-sms-send.png\"\u003e\n\u003cimg src=\"./docs/demo/admin-setting.png\"\u003e\n\n\n### User Panel\n\u003cimg src=\"./docs/demo/user-login.png\"\u003e\n\u003cimg src=\"./docs/demo/change-password.png\"\u003e\n\u003cimg src=\"./docs/demo/user-login-info.png\"\u003e\n\u003cimg src=\"./docs/demo/user-help-pdf.png\"\u003e\n\u003cimg src=\"./docs/demo/user-index.png\"\u003e\n\u003cimg src=\"./docs/demo/menu.png\"\u003e\n\u003cimg src=\"./docs/demo/order-food.png\"\u003e\n\u003cimg src=\"./docs/demo/order.png\"\u003e\n\u003cimg src=\"./docs/demo/history.png\"\u003e\n\u003cimg src=\"./docs/demo/history-cancel.png\"\u003e\n\u003cimg src=\"./docs/demo/cancel-order.png\"\u003e\n\u003cimg src=\"./docs/demo/history-index.png\"\u003e\n\u003cimg src=\"./docs/demo/history-index-options.png\"\u003e\n\u003cimg src=\"./docs/demo/user-panel.png\"\u003e\n\n\n# Responsive\n\u003cimg src=\"./docs/demo/user-index-reponsive.png\"\u003e\n\u003cimg src=\"./docs/demo/order-responsive.png\"\u003e\n\u003cimg src=\"./docs/demo/order-responsive-1.png\"\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisharify7%2Ffood-ordering-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falisharify7%2Ffood-ordering-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falisharify7%2Ffood-ordering-app/lists"}