# mi_koa_nodejs **Repository Path**: gitxys/mi_koa_nodejs ## Basic Information - **Project Name**: mi_koa_nodejs - **Description**: 使用nodejs koa 框架结合mysql 、jwt 实现mi 商城demo - **Primary Language**: NodeJS - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 0 - **Created**: 2024-11-23 - **Last Updated**: 2024-12-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 仿小米商城后端服务-koa ## 介绍 模拟小米官网的后端服务基于jwt实现 项目运行环境 | npm | 10.9.0+ | | ------------ | ------ | | sequelize | 6.37.5 | | koa | 2.15.3 | | jsonwebtoken | 9.0.2 | | mysql | 5.7+ | ## 后端运行先配置数据库(mysql 5.7+) ## 下载项目到本地 ``` git clone https://gitee.com/gitxys/mi_koa_nodejs.git cd mi_koa_nodejs npm install npm run dev 即可启动 ``` ## 其他语言版本后端地址 | 名称 | Gitee | Github | | -------------------------- | ------------------------------------------ | ------------------------------------------- | | mi_springboot (Java) | https://gitee.com/gitxys/mi_springboot | https://github.com/xuyisu/mi_springboot | | mi-beego (Golang) | https://gitee.com/gitxys/mi-beego | https://github.com/xuyisu/mi-beego | | mi-gin (Golang) | https://gitee.com/gitxys/mi-gin | https://github.com/xuyisu/mi-gin | | mi_django (Python) | https://gitee.com/gitxys/mi_django | https://github.com/xuyisu/mi_django | | mi_fastapi (Python) | https://gitee.com/gitxys/mi_fastapi | https://github.com/xuyisu/mi_fastapi | | mi_koa_nodejs (nodejs) | https://gitee.com/gitxys/mi_koa_nodejs | https://github.com/xuyisu/mi_koa_nodejs | | mi_express_nodejs (nodejs) | https://gitee.com/gitxys/mi_express_nodejs | https://github.com/xuyisu/mi_express_nodejs | | mi_egg_nodejs (nodejs) | https://gitee.com/gitxys/mi_egg_nodejs | https://github.com/xuyisu/mi_egg_nodejs | | | | | ## 前端启动 项目地址https://gitee.com/gitxys/mi_vue [代码地址Gitee](https://gitee.com/gitxys/mi_vue) [代码地址GitHub](https://github.com/xuyisu/mi_vue) 控制台先安装依赖包 ``` npm install ``` 然后运行下面代码即可启动 ``` npm run serve ``` ## 页面介绍 浏览器输入http://localhost:8080 将看到一下页面 ![](images/index.png) 登录:**用户名/密码** admin/123456 ![image-20211219223115929](images/login.png) 购物车 ![image-20211219223220837](images/cart.png) 订单确认 ![image-20211219223323684](images/order-confirm.png) 订单结算(彩蛋!!!! 这里的结算做了特殊处理) ![image-20211219223406482](images/pay.png) 订单列表 ![image-20211219223507791](images/order.png) 亲,留个star 吧