{"id":38690228,"url":"https://github.com/geeeeeeeek/web_b2b","last_synced_at":"2026-01-17T10:31:34.501Z","repository":{"id":79990932,"uuid":"86462616","full_name":"geeeeeeeek/web_b2b","owner":"geeeeeeeek","description":"基于Python开发的B2B企业网站，适用于外贸独立站、企业官网、产品官网等场景。","archived":false,"fork":false,"pushed_at":"2025-11-01T13:55:31.000Z","size":20503,"stargazers_count":54,"open_issues_count":2,"forks_count":29,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-11-01T15:19:59.953Z","etag":null,"topics":["css","javascript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/geeeeeeeek.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-28T13:20:43.000Z","updated_at":"2025-11-01T13:55:36.000Z","dependencies_parsed_at":"2025-09-09T04:28:29.844Z","dependency_job_id":null,"html_url":"https://github.com/geeeeeeeek/web_b2b","commit_stats":null,"previous_names":["geeeeeeeek/web_b2b"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/geeeeeeeek/web_b2b","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeeeeeeek%2Fweb_b2b","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeeeeeeek%2Fweb_b2b/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeeeeeeek%2Fweb_b2b/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeeeeeeek%2Fweb_b2b/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geeeeeeeek","download_url":"https://codeload.github.com/geeeeeeeek/web_b2b/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geeeeeeeek%2Fweb_b2b/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28506588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T10:25:30.148Z","status":"ssl_error","status_checked_at":"2026-01-17T10:25:29.718Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["css","javascript"],"created_at":"2026-01-17T10:31:34.421Z","updated_at":"2026-01-17T10:31:34.486Z","avatar_url":"https://github.com/geeeeeeeek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于Python开发的B2B企业英文网站\n\n\n\u003e 基于React+django开发的b2b企业网站（大部分代码使用AI编写），适用场景包括外贸独立站、企业官网、产品展示网站等场景。自2025年9月9日起本项目不再维护。\n\n\n## 在线演示\n\n演示地址：[https://010.fktool.com](https://010.fktool.com)\n\n\n## 开发环境\n\n- 后端： Python 3.8 + Django 3.2\n- 前端： Javascript + Vue\n- 数据库：MySQL 5.7\n- 开发平台：Pycharm + vscode\n- 运行环境：Windows 10/11\n\n## 关键技术\n\n- 前端技术栈 ES6、React、nextjs、react-router、axios、antd、tailwindcss\n- 后端技术栈 Python、Django、djangorestframework、pip\n\n\n\n## 运行步骤\n\n### 软件准备\n\n1. Python 3.8 [下载地址](https://www.python.org/ftp/python/3.8.10/python-3.8.10-amd64.exe)\n2. MySQL 5.7 [下载地址](https://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community-5.7.44.0.msi)\n3. Node [下载地址](https://nodejs.org/dist/v18.20.2/node-v18.20.2-x64.msi)\n\n### 后端运行步骤\n\n(1) 安装依赖，cd进入server目录下，执行\n```\npip install -r requirements.txt\n```\n\n(2) 创建数据库，创建SQL如下：\n```\nCREATE DATABASE IF NOT EXISTS python_db[your dbname] DEFAULT CHARSET utf8 COLLATE utf8_general_ci\n```\n(3) 恢复数据库数据。在mysql下依次执行如下命令：\n\n```\nmysql\u003e use xxx(数据库名);\nmysql\u003e source D:/xxx/xxx/xxx.sql;\n```\n\n(4) 配置数据库。在server目录下的server下的settings.py中配置您的数据库账号密码\n\n```\nDATABASES = {\n    'default': {\n        'ENGINE': 'django.db.backends.mysql',\n        'NAME': 'python_db',   # 您的数据库\n        'USER': 'root',        # 您的用户名\n        'PASSWORD': 'xxxxx', # 您的密码\n        'HOST': '127.0.0.1',\n        'PORT': '3306',\n        'OPTIONS': {\n            \"init_command\": \"SET foreign_key_checks = 0;\",\n        }\n    }\n}\n```\n\n(5) 启动django服务。在server目录下执行：\n```\npython manage.py runserver\n```\n\n### 前端运行步骤\n\n(1) 安装依赖，cd到web目录，执行:\n```\nnpm install \n```\n(2) 修改.env配置\n\n修改.env文件中的域名，改成你自己的域名。\n\n(3) 构建项目\n```\nnpm run build\n```\n(4) 运行\n```\nnpm run start\n```\n\n### nginx配置\n\n```\nserver {\n    listen       80;\n    server_name  xxxxx.com www.xxxxx.com;\n\n\n    location /upload/ {\n        access_log off;\n        log_not_found off;\n        alias /var/xxxxx/server/upload/;\n        add_header Cache-Control \"public, max-age=90\";\n    }\n     \n    # ico文件\n    location /favicon.ico {\n        access_log off;\n        log_not_found off;\n        alias /var/xxxxx/server/upload/img/favicon.ico;\n        add_header Cache-Control \"public, max-age=90\";\n    }\n\n    # django代理\n    location /myapp/ {\n        proxy_pass http://127.0.0.1:8000;\n        proxy_set_header Host $host;\n\tproxy_set_header X-Real-IP $remote_addr; # 获取客户端真实 IP\n\tproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # 获取代理链中的真实 IP\n\tproxy_set_header X-Forwarded-Proto $scheme; # 获取协议（http 或 https）\n\tclient_max_body_size 100M; # 上传限制\n\n    }\n\n    location /_next/image {\n        proxy_pass http://127.0.0.1:3000;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n        add_header Cache-Control \"public, max-age=31536000\";\n    }\n\n    location /_next/static {\n        proxy_pass http://127.0.0.1:3000;\n        access_log off;\n        expires 1y;\n        add_header Cache-Control \"public, max-age=31536000, immutable\";\n    }\n\n    # 开发环境hmr\n    location /_next/webpack-hmr {\n\t    proxy_pass http://127.0.0.1:3000;\n\t    proxy_http_version 1.1;\n\t    proxy_set_header Upgrade $http_upgrade;\n\t    proxy_set_header Connection \"upgrade\";\n\t    proxy_set_header Host $host;\n\t    proxy_cache_bypass $http_upgrade;\n    }\n\n    location / {\n        proxy_pass http://127.0.0.1:3000;\n        proxy_set_header Host $host;\n        proxy_set_header X-Real-IP $remote_addr;\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n        proxy_set_header X-Forwarded-Proto $scheme;\n    }\n}\n\n```\n\n\n\n\n\n## 付费咨询\n\n微信（Lengqin1024）\n\n\n## 常见问题\n\n**1. 数据库版本有什么要求？**\n\n答：mysql 5.7及以上版本即可\n\n**2. 项目的代码结构？**\n\n答：server目录是后端代码，web目录是前端代码。\n\n**3. 需要学习哪些技术知识？**\n\n答：需要学习[python编程知识](https://www.runoob.com/python3/python3-tutorial.html)、[django框架知识](https://docs.djangoproject.com/zh-hans/3.2/)、[vue编程知识](https://cn.vuejs.org/guide/introduction.html)\n\n**4. 后台管理的默认账号密码是？**\n\n答：管理员账号密码是：admin123 / admin123\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeeeeeeeek%2Fweb_b2b","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeeeeeeeek%2Fweb_b2b","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeeeeeeeek%2Fweb_b2b/lists"}