yihaocompany / mall

美多商城不完全API,FastAPI版本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

介绍

美多商城,本仓库使用FastAPI进行翻抄,大部分API一致,目前抄完部分

功能

apis 其中并没有实现原项目中的Template文件

使用

  • redis - aioredis
  • mysql8 - tortoise-orm
  • elasticsearch - elasticsearch[async]
  • rabbitmq - celery
  • fastdfs - py3Fdfs

本地运行

  1. docker-compose up -d 可以搭建部分环境
  2. 或者直接修改.development 中的配置信息
  3. pip install -r requirements.txt (建议提前建立虚拟环境)
  4. 新建数据库 mall, 导入score目录下的mall.sql文件
  5. python main.py
  6. 访问IP:8000/docs, 初始登录的账号密码为 string string

todo

  • 支付对接
  • 代码优化

About

美多商城不完全API,FastAPI版本


Languages

Language:Python 100.0%