{"id":31073555,"url":"https://github.com/mikebionic/sapapi-core","last_synced_at":"2026-05-06T03:33:14.054Z","repository":{"id":313035662,"uuid":"262860579","full_name":"mikebionic/SapAPI-core","owner":"mikebionic","description":"E-commerce application based on Sap System running on Python REST-Api","archived":false,"fork":false,"pushed_at":"2025-09-04T15:30:17.000Z","size":100195,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-16T01:48:03.197Z","etag":null,"topics":["ecommerce","flask","javascript","marketplace","nginx","online","python","restapi","sqlalchemy","store","templates","website"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikebionic.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-10T19:30:13.000Z","updated_at":"2025-09-06T11:28:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"7ad3e1f7-18e9-4a2a-82f5-3cace3506a9c","html_url":"https://github.com/mikebionic/SapAPI-core","commit_stats":null,"previous_names":["mikebionic/sapapi-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mikebionic/SapAPI-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FSapAPI-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FSapAPI-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FSapAPI-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FSapAPI-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikebionic","download_url":"https://codeload.github.com/mikebionic/SapAPI-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikebionic%2FSapAPI-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["ecommerce","flask","javascript","marketplace","nginx","online","python","restapi","sqlalchemy","store","templates","website"],"created_at":"2025-09-16T01:47:55.431Z","updated_at":"2026-05-06T03:33:14.046Z","avatar_url":"https://github.com/mikebionic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **SAPHASAP E-Commerce Web Application**\n\n*A powerful and flexible e-commerce platform with API + Flask Jinja template support*\n\n![Deployed Example of SapAPI website](https://mikebionic.github.io/portfolio/static/projects/web_proj/lomaysowda_v2.webp)\n\n## **Overview**\n\nSAPHASAP is a **large-scale, modular e-commerce platform** designed to support entire marketplaces. It combines:\n\n* A **robust API backend**\n* A **Flask Jinja2-compatible frontend system**\n* Multiple **sample templates** ready for configuration and deployment\n\nThe platform is fully **customizable, scalable**, and built on a strong codebase using **Flask** and **SQLAlchemy ORM**.\n\n### **Core Concept**\n\nBusinesses can:\n\n* Create and manage their own online store\n* Add products, categories, and attributes\n* Customize storefront designs\n\nSupports:\n\n* Multiple currencies \u0026 exchange rates\n* Precision attribute filtering\n* Multiple image uploads with watermarking\n* Brand, collection, and slider creation\n* Checkout with **online bank BPC integration** (Turkmenistan legacy support)\n* Flexible database structure\n* Strong security \u0026 session management\n\n---\n\n## **Core Features**\n\n* **Customizable Marketplaces**: Businesses can create and manage stores with custom categories, products, and storefront designs\n* **Multi-language Support**: Full internationalization (i18n) support\n* **Multi-currency \u0026 Exchange Rates**: Handles multiple currencies with real-time exchange rates\n* **Secure Authentication**: Username/password, Google OAuth, SMS-based registration\n* **File Management**: Image upload with watermarking, compression, and management\n* **Payment Integration**: Online bank BPC and other gateways\n* **Modular Architecture**: Extensible codebase with Flask \u0026 SQLAlchemy ORM\n* **Caching \u0026 Performance**: Redis for session management and caching\n* **Rich API**: Comprehensive endpoints for categories, resources, orders, and more\n\n---\n\n\u003cdiv style=\"display: flex; justify-content: center; gap: 10px;\"\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/c/c3/Python-logo-notext.svg/1024px-Python-logo-notext.svg.png\" alt=\"Flask\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3c/Flask_logo.svg/1920px-Flask_logo.svg.png\" alt=\"Flask\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/2/29/Postgresql_elephant.svg\" alt=\"PostgreSQL\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/e/ee/Redis_logo.svg/1920px-Redis_logo.svg.png\" alt=\"Redis\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Nginx_logo.svg/250px-Nginx_logo.svg.png\" alt=\"Nginx\" height=\"40\" /\u003e\n  \u003cimg src=\"https://www.svgrepo.com/show/473669/jinja.svg\" alt=\"Jinja\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/HTML5_logo_and_wordmark.svg/1024px-HTML5_logo_and_wordmark.svg.png\" alt=\"HTML5\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/CSS3_logo_and_wordmark.svg/800px-CSS3_logo_and_wordmark.svg.png\" alt=\"CSS3\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/6/6a/JavaScript-logo.png\" alt=\"JavaScript\" height=\"40\" /\u003e\n  \u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/3/30/React_Logo_SVG.svg/1280px-React_Logo_SVG.svg.png\" alt=\"JWT\" height=\"40\" /\u003e\n\u003c/div\u003e\n\n## **Tech Stack**\n\n**Backend:** Python (≥3.6), Flask, SQLAlchemy ORM\n**Frontend:** Flask Jinja2 templates, JavaScript, jQuery, ReactJS\n**Database:** PostgreSQL\n**Caching:** Redis\n**Other Tools:** BCrypt for password hashing, JWT for authentication, Elasticsearch (optional)\n\n---\n\n## **Features**\n\n- ✅ Stable REST API\n- ✅ Web-admin UI\n- ✅ Web-client UI\n- ✅ Multi-language support\n- ✅ File management \u0026 compression\n- ✅ Security \u0026 encryption\n- ✅ Relational DB management\n- ✅ PostgreSQL support\n- ✅ Redis session \u0026 caching\n- ✅ Modular architecture\n- ✅ Client Admin API\n- ✅ Full feature key activation\n- ✅ WebSocket support\n\n---\n\n## **Installation Guide**\n\n### **1. Prerequisites**\n\n* Python ≥ 3.6\n* PostgreSQL\n* Redis\n* pip and virtualenv\n\n### **2. Clone Repository**\n\n```bash\ngit clone \u003crepository-url\u003e\ncd saphasap\n```\n\n### **3. Create Virtual Environment**\n\n```bash\npython3 -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n### **4. Install Dependencies**\n\n```bash\npip install -r requirements.txt\n```\n\n### **5. Configure Environment Variables**\n\nCopy `.env.example` to `.env` and update values:\n\n```bash\ncp .env.example .env\nnano .env\n```\n\n### **6. Database Setup**\n\nCreate a database:\n\n```bash\nsudo -u postgres psql\nCREATE DATABASE saphasap;\n\\q\n```\n\nRun migrations:\n\n```bash\npython migrate.py\n```\n\nOr restore from backup:\n\n```bash\npsql -U postgres -d saphasap \u003c commerceDBTemplate.backup\n```\n\n### **7. Start Application**\n\n```bash\npython run.py\n```\n\nOr via `Makefile`:\n\n```bash\nmake run\n```\n\n---\n\n## **Configuration**\n\n### **Environment Variables**\n\nSensitive settings are stored in `.env`. Ensure `.env` is listed in `.gitignore`.\n\n### **Site Configuration**\n\nAdd static files in `main_pack/static/web_config`:\n\n* `robots.txt`\n* `sitemap.xml`\n* `watermark.png`\n\nCustomize templates in `main_pack/templates/commerce`.\n\n---\n\n## **API Highlights**\n\nThe backend exposes **RESTful endpoints**.\n\n### **Category Management**\n\n* **Get all categories**:\n\n```http\nGET /api/categories/\n```\n\n* **Add category**:\n\n```http\nPOST /api/categories/\nContent-Type: application/json\n{\n  \"name\": \"Electronics\",\n  \"description\": \"Electronic gadgets\"\n}\n```\n\n* **Update category**:\n\n```http\nPUT /api/categories/\u003cid\u003e/\nContent-Type: application/json\n{\n  \"name\": \"Updated Electronics\",\n  \"description\": \"Updated description\"\n}\n```\n\nSee [API Documentation](documentation/api_documentation.md) for full details.\n\n---\n\n## **Development**\n\n### **Project Structure**\n\n```\nsaphasap/\n├── codes_for_checking/       # Utility scripts\n├── documentation/            # API docs and developer notes\n├── main_pack/                # Core app\n│   ├── api/                  # API routes and logic\n│   ├── commerce/             # Frontend routes and templates\n│   ├── models/               # SQLAlchemy models\n│   ├── static/               # CSS, JS, images\n│   ├── templates/            # Jinja2 templates\n│   └── utils/                # Helper utilities\n├── .env.example              # Sample environment variables\n├── Makefile                  # Build and deployment tasks\n├── requirements.txt          # Python dependencies\n├── run.py                    # Application entry point\n└── migrate.py                # Database migration script\n```\n\n### **Running Tests**\n\n```bash\nmake test\n```\n\nUse `curl` or Postman for API testing:\n\n```bash\ncurl -X GET http://localhost:5000/api/categories/\n```\n\nSee [API Testing Guide](documentation/api_testing.md) for full instructions.\n\n---\n\n## **Deployment**\n\n### **Using Docker**\n\n```bash\nmake docker-build\nmake docker-run\n```\n\n### **Manual Deployment**\n\n1. Install dependencies\n2. Copy app code\n3. Set `.env` variables\n4. Run migrations: `python migrate.py`\n5. Start with Gunicorn:\n\n```bash\ngunicorn --workers 4 --bind 0.0.0.0:5000 run:app\n```\n\n---\n\n## **Contributing**\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature-name`\n3. Commit changes: `git commit -m \"Add feature\"`\n4. Push to branch: `git push origin feature-name`\n5. Open a pull request\n\nFollow the [Code Style Guide](documentation/code_style.md) and include tests for new features.\n\n---\n\n## **TODO / Roadmap**\n\n* [ ] Separate API and UI repositories\n* [ ] Optimize backend (Node.js optional)\n* [ ] Implement WebSocket support\n* [ ] Develop admin client application\n* [ ] Migrate app configurations to database\n\n---\n\n## **Additional Resources**\n\n* [API Backend Info](documentation/api_backend.md)\n* [Mail Setup](documentation/mail_setup.md)\n* [PyBabel Translation](documentation/pybabel_usage.md)\n* [Developer Notes](documentation/developers_notes/)\n\n---\n\n## **License**\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Fsapapi-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikebionic%2Fsapapi-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikebionic%2Fsapapi-core/lists"}