Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
有来技术
youlai-mall
提交
42b3394f
Y
youlai-mall
项目概览
有来技术
/
youlai-mall
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
youlai-mall
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
42b3394f
编写于
2月 16, 2022
作者:
郝
郝先瑞
提交者:
Gitee
2月 16, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs(README.md): 美化说明文档
上级
5d02ef98
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
104 addition
and
55 deletion
+104
-55
README.md
README.md
+104
-55
未找到文件。
README.md
浏览文件 @
42b3394f
...
...
@@ -14,33 +14,35 @@
</a>
</p>
<p
align=
"center"
>
<strong>
在线预览:
</strong><a
target=
"_blank"
href=
"http://www.youlai.tech"
>
www.youlai.tech
</a>
<strong>
在线预览:
</strong><a
target=
"_blank"
href=
"http://www.youlai.tech"
>
www.youlai.tech
</a>
</p>
<p
align=
"center"
>
<strong>
开源地址:
</strong>
<a
target=
"_blank"
href=
'https://github.com/hxrui'
>
Github
</a>
|
<a
target=
"_blank"
href=
'https://gitee.com/haoxr'
>
Gitee
</a>
|
<a
target=
"_blank"
href=
'https://gitcode.net/youlai'
>
GitCode
</a>
<strong>
开源地址:
</strong>
<a
target=
"_blank"
href=
'https://github.com/hxrui'
>
Github
</a>
|
<a
target=
"_blank"
href=
'https://gitee.com/haoxr'
>
Gitee
</a>
|
<a
target=
"_blank"
href=
'https://gitcode.net/youlai'
>
GitCode
</a>
</p>
<p
align=
"center"
>
<strong>
博客主页:
</strong><a
target=
"_blank"
href=
"https://www.cnblogs.com/haoxianrui/"
>
https://www.cnblogs.com/haoxianrui
</a>
<strong>
博客主页:
</strong><a
target=
"_blank"
href=
"https://www.cnblogs.com/haoxianrui/"
>
https://www.cnblogs.com/haoxianrui
</a>
</p>
<p
align=
"center"
>
<strong>
开发者文档:
</strong><a
target=
"_blank"
href=
"http://youlaitech.gitee.io/youlai-mall"
>
http://youlaitech.gitee.io/youlai-mall
</a>
<strong>
开发者文档:
</strong><a
target=
"_blank"
href=
"http://youlaitech.gitee.io/youlai-mall"
>
http://youlaitech.gitee.io/youlai-mall
</a>
</p>
## 📚️ 项目介绍
### 项目简介
## 🈶 项目介绍
### 🗁 项目简介
[
youlai-mall
](
https://gitee.com/haoxr
)
是基于Spring Boot 2.6、Spring Cloud 2021 & Alibaba 2021、Vue3、Element-Plus、uni-app等主流技术栈构建的一整套全栈开源商城项目, 涉及
[
后端微服务
](
https://gitee.com/youlaitech/youlai-mall
)
、
[
前端管理
](
https://gitee.com/youlaitech/youlai-mall-admin
)
、
[
微信小程序
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
和
[
APP应用
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
等多端的开发。
[
youlai-mall
](
https://gitee.com/haoxr
)
是基于Spring Boot 2.6、Spring Cloud 2021 & Alibaba
2021、Vue3、Element-Plus、uni-app等主流技术栈构建的一整套全栈开源商城项目, 涉及
[
后端微服务
](
https://gitee.com/youlaitech/youlai-mall
)
、
[
前端管理
](
https://gitee.com/youlaitech/youlai-mall-admin
)
、
[
微信小程序
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
和
[
APP应用
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
等多端的开发。
### 项目特色
### 🗁 项目特色
-
项目使用皆是当前主流的技术栈,无过度自定义封装,易理解学习和二次扩展;
-
SpringBoot 2.6、SpringCloud 2021 & Alibaba 2021 一站式微服务开箱即用的解决方案;
...
...
@@ -48,7 +50,9 @@
-
移动端采用终极跨平台解决方案 uni-app, 一套代码编译iOS、Android、H5和小程序等多个平台;
-
Jenkins、K8s、Docker实现微服务持续集成与交付(CI/CD)。
### 在线预览
### 🗁 在线预览
| | 地址 |
| --- | --- |
...
...
@@ -57,7 +61,8 @@
| H5 移动端 |
[
www.youlai.tech:81
](
http://www.youlai.tech:9527
)
|
### 预览截图
### 🗁 预览截图
|「App」Spring Security OAuth2 手机短信验证码模式 | 「小程序」Spring Security OAuth2 微信授权模式 |
| ------------------------------------------------------------ |----------------------------------------------------------- |
...
...
@@ -65,74 +70,96 @@
|
**「管理前端」Spring Security OAuth2 密码模式**
|
**「管理前端」Spring Security OAuth2 验证码模式**
|
|
<img
src=
"https://gitee.com/haoxr/image/raw/master/default/password.gif"
width=
"100%"
height=
"400px"
/>
|
<img
src=
"https://gitee.com/haoxr/image/raw/master/default/captcha.gif"
width=
"100%"
height=
"400px"
/>
|
## 🪐 源码地址
| 名称 | Gitee | Github |
|---|---|---|
| 开源组织 |
[
有来开源组织
](
https://gitee.com/youlaiorg
)
|
[
有来开源组织
](
https://github.com/youlaitech
)
|
| 后端 |
[
youlai-mall
](
https://gitee.com/youlaiorg/youlai-mall
)
|
[
youlai-mall
](
https://github.com/youlaitech/youlai-mall
)
|
| 管理前端 |
[
mall-admin-web
](
https://gitee.com/youlaiorg/mall-admin-web
)
|
[
mall-admin-web
](
https://github.com/youlaitech/mall-admin-web
)
|
| 小程序/H5/移动端 |
[
mall-app
](
https://gitee.com/youlaiorg/mall-app
)
|
[
mall-app
](
https://github.com/youlaitech/mall-app
)
|
## 🔱 源码地址
| | Gitee | Github | GitCode |
|---|---|---|---|
| 开源组织 |
[
有来开源组织
](
https://gitee.com/youlaiorg
)
|
[
有来开源组织
](
https://github.com/youlaitech
)
|
[
有来开源组织
](
https://gitcode.net/youlai
)
|
| 后端 |
[
youlai-mall
](
https://gitee.com/youlaiorg/youlai-mall
)
|
[
youlai-mall
](
https://github.com/youlaitech/youlai-mall
)
|
[
youlai-mall
](
https://gitcode.net/youlai/youlai-mall
)
|
| 管理前端 |
[
mall-admin-web
](
https://gitee.com/youlaiorg/mall-admin-web
)
|
[
mall-admin-web
](
https://github.com/youlaitech/mall-admin-web
)
|
[
mall-admin-web
](
https://github.com/youlaitech/mall-admin-web
)
|
| 小程序/H5/移动端 |
[
mall-app
](
https://gitee.com/youlaiorg/mall-app
)
|
[
mall-app
](
https://github.com/youlaitech/mall-app
)
|
[
mall-app
](
https://gitcode.net/youlai/mall-app
)
|
## 🚣♂️ 项目启动
##
🚤 项目
启动
##
# 🗁 后端
启动
### 后端启动
> `极速启动` 是方便快速启动查看效果的启动方式,其中的数据库和Redis等中间件使用的是有来提供的云环境,切勿修改数据,有时间条件建议`本地启动`。
#### 极速启动
#### 1️⃣ 极速启动
1.
**启动 Nacos**
-
IDEA 打开命令行终端 Terminal,输入
`cd middleware/nacos/bin`
切换到 Nacos 的 bin 目录,执行
`startup -m standalone`
启动 Nacos 服务。
2.
**服务启动**
-
进入
`youlai-gateway`
模块的启动类 GatewayApplication 启动网关;
-
进入
`youlai-auth`
模块的启动类 AuthApplication 启动认证授权中心;
-
进入
`youlai-admin`
→
`admin-boot`
模块的启动类 AdminApplication 启动系统服务;
-
至此已完成基础服务的启动,商城服务按需启动,启动方式和
`youlai-admin`
一致。访问接口文档地址测试
[
http://localhost:9999/doc.html
](
http://localhost:9999/doc.html
)
-
至此已完成基础服务的启动,商城服务按需启动,启动方式和
`youlai-admin`
一致;
-
访问接口文档地址测试
[
http://localhost:9999/doc.html
](
http://localhost:9999/doc.html
)
#### 本地启动
1.
**中间件安装(🔴必装 ⚪可选)**
#### 2️⃣ 本地启动
1.
**中间件安装(🔴必装 ⚪可选)**
-
🔴MySQL 安装
-
🔴Redis 安装
-
⚪RabbitMQ
-
⚪Seata 安装
-
⚪Sentinel 安装
2.
**数据库创建和数据初始化**
- **系统数据库**
进入 `doc/sql` 目录 , 根据 MySQL 版本选择对应的脚本;
先执行 `database.sql` 完成数据库的创建;
进入
`doc/sql`
目录 , 根据 MySQL 版本选择对应的脚本;
先执行
`database.sql`
完成数据库的创建;
再执行
`youlai.sql`
、
`mall_*.sql`
完成数据表的创建和数据初始化。
再执行 `youlai.sql` 、`mall_*.sql` 完成数据表的创建和数据初始化。
- **Nacos数据库**
创建名为 nacos 的数据库;
执行 `middleware/nacos/conf/nacos-mysql.sql` 脚本完成 Nacos 数据库初始化。
创建名为 nacos 的数据库;
执行
`middleware/nacos/conf/nacos-mysql.sql`
脚本完成 Nacos 数据库初始化。
3.
**Nacos 配置和启动**
a. **Nacos 配置持久化至 MySQL**
> Nacos 默认配置持久化到内嵌的Derby数据库,开发无特殊情况可使用默认配置,如需持久化配置到MySQL,完成下面配置修改即可。
进入 `middleware/nacos/conf/application.properties` 文件修改 Nacos 配置的数据连接,需要修改配置如下:
a.
**Nacos 配置持久化至 MySQL**
> Nacos 默认配置持久化到内嵌的Derby数据库,开发无特殊情况可使用默认配置,如需持久化配置到MySQL,完成下面配置修改即可。
进入
`middleware/nacos/conf/application.properties`
文件修改 Nacos 配置的数据连接,需要修改配置如下:
```
properties
spring.datasource.platform
=
mysql
db.num
=
1
...
...
@@ -140,45 +167,59 @@
db.user.0
=
root
db.password.0
=
123456
```
b. **启动Nacos**
b.
**启动Nacos**
IDEA 打开命令行终端 Terminal,输入
`cd middleware/nacos/bin`
切换到 Nacos 的 bin 目录,执行
`startup -m standalone`
启动 Nacos 服务。
IDEA 打开命令行终端 Terminal,输入 `cd middleware/nacos/bin` 切换到 Nacos 的 bin 目录,执行 `startup -m standalone` 启动 Nacos 服务。
c. **导入Nacos配置**
c.
**导入Nacos配置**
打开浏览器,地址栏输入 Nacos 管控台的地址
[
http://localhost:8848/nacos
](
http://localhost:8848/nacos
)
;
打开浏览器,地址栏输入 Nacos 管控台的地址
[
http://localhost:8848/nacos
](
http://localhost:8848/nacos
)
;
输入用户名/密码:nacos/nacos ;
进入管控台,点击左侧菜单 `配置管理` → `配置列表` 进入列表页面,点击 `导入配置` 选择项目中的 `doc/nacos/DEFAULT_GROUP.zip` 文件
;
输入用户名/密码:nacos/nacos
;
d. **修改Nacos配置**
进入共享配置
`youlai-common.yaml`
,修改 MySQL、Redis、RabbitMQ等中间件信息为您自己本地环境,默认为有来云环境。
进入管控台,点击左侧菜单
`配置管理`
→
`配置列表`
进入列表页面,点击
`导入配置`
选择项目中的
`doc/nacos/DEFAULT_GROUP.zip`
文件 ;
d.
**修改Nacos配置**
进入共享配置
`youlai-common.yaml`
,修改 MySQL、Redis、RabbitMQ等中间件信息为您自己本地环境,默认为有来云环境。
4.
**服务启动**
进入
`youlai-gateway`
模块的启动类 GatewayApplication 启动网关;
进入
`youlai-auth`
模块的启动类 AuthApplication 启动认证授权中心;
进入
`youlai-admin`
→
`admin-boot`
模块的启动类 AdminApplication 启动系统服务;
至此已完成基础服务的启动,商城服务按需启动,启动方式和
`youlai-admin`
一致。
5.
**启动测试**
访问接口文档地址测试
[
http://localhost:9999/doc.html
](
http://localhost:9999/doc.html
)
### 管理前端启动
### 🗁 管理前端启动
1.
本机安装 Node 环境
2.
npm install
3.
npm run dev
4.
访问 http://localhost:9527
### 微信小程序启动
### 🗁 微信小程序启动
1.
下载
`HBuilder X`
和
`微信开发者工具`
;
2.
导入
[
mall-app
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
源码至
`HBuilder X`
;
...
...
@@ -188,7 +229,9 @@
6.
Nacos控制台替换
`youlai-auth`
配置中的微信小程序 AppID 和 AppSecret 为自己申请的小程序 ;
7.
`Hbuilder X`
工具栏点击
`运行`
->
`运行到小程序模拟器`
->
`微信开发者工具`
。
### H5/移动端启动
### 🗁 H5/移动端启动
1.
下载
`HBuilder X`
;
2.
导入
[
mall-app
](
https://gitee.com/youlaitech/youlai-mall-weapp
)
源码至
`HBuilder X`
;
...
...
@@ -197,22 +240,28 @@
## 💹 趋势统计
-
Gitee
<p
align=
"center"
>
<a
target=
"_blank"
href=
'https://whnb.wang/stars/youlaitech/youlai-mall'
><img
src=
"https://whnb.wang/stars/youlaitech/youlai-mall"
></a>
</p>
-
Github
<p
align=
"center"
>
<a
target=
"_blank"
href=
'https://starchart.cc/hxrui/youlai-mall'
><img
src=
"https://starchart.cc/hxrui/youlai-mall.svg"
></a>
</p>
## 🚀 联系信息
## 💬 联系信息
> 欢迎添加开发者微信,备注「有来」进群
| !
[](
https://gitee.com/haoxr/image/raw/master/hxr.jpg
)
| !
[](
https://gitee.com/haoxr/image/raw/master/default/jialin.jpg
)
| !
[](
https://gitee.com/haoxr/image/raw/master/default/ba695a5e70410a066b7052c5dc9db5c.jpg
)
|
|---|---|---|
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录