Skip to content

Commit

Permalink
V 0.1.0, 项目架构基本完成。
Browse files Browse the repository at this point in the history
  • Loading branch information
linlinjava committed Mar 22, 2018
0 parents commit 6c14c43
Show file tree
Hide file tree
Showing 648 changed files with 95,965 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.idea/
/private/
/storage/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 linlinjava([email protected])

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
119 changes: 119 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
litemall
=====

又一个小商场系统。

项目代码
====

* [码云](https://gitee.com/linlinjava/litemall)
* [GitHub](https://github.com/linlinjava/litemall)

项目架构
====
![](./doc/pic/1.png)

技术栈
===

> 1. Spring Boot
> 2. Vue
> 3. 微信小程序
![](doc/pic/2.png)

效果
==

### 小商城效果

![](doc/pic/3.png)

* 首页
* 专题列表、专题详情
* 分类列表、分类详情
* 品牌列表、品牌详情
* 新品首发
* 人气推荐
* 商品搜索
* 商品详情
* 商品评价列表、商品评价
* 购物车
* 下单
* 我的主页
* 订单列表、订单详情
* 地址列表、地址添加、地址删除
* 我的收藏
* 我的足迹


### 管理平台效果

![](doc/pic/4.png)

* 会员管理

* 商场管理

* 商品管理

* 推广管理

* 系统管理


云演示
==

### 小商城演示访问

由于没有上线,只能在微信开发工具中测试运行:

1. 微信开发工具导入litemall-wx项目;
2. 项目配置,启用“不校验合法域名、web-view(业务域名)、TLS 版本以及 HTTPS 证书”
3. 点击“编译”,即可在微信开发工具预览效果;
4. 也可以点击“预览”,然后手机扫描登陆。

![](doc/pic/5.gif)

### 管理平台演示访问

1. 浏览器打开,输入以下网址`http://122.152.206.172:8080/#/login`
2. 用户名`admin123`,密码`admin123`

文档
==

1. [系统架构](doc/1.md)
2. [基础子系统](doc/2.md)
3. [小程序子系统](doc/3.md)
4. [管理后台子系统](doc/4.md)
5. [商场子系统](doc/5.md)
6. [下一步计划](doc/6.md)

更新
==

* V 0.1.0,项目架构基本完成。

警告
==

> 1. 本项目仅用于学习练习
> 2. 数据库数据来自nideshop
> 3. 项目代码目前还不完善,仍处在开发中
> 4. 项目开源(MIT),但不承担任何使用后果

致谢
==

本项目基于或参考以下项目:
> 1. nideshop-mini-program
> 如果后端希望采用nodejs,用户可以访问nideshop项目
> 2. platform
> 如果后端希望采用非spring boot版的普通spring版或者更多功能,
> 用户可以访问platform项目
> 3. vue-element-admin
本项目所依赖的其他开源项目见相关章节
4 changes: 4 additions & 0 deletions deploy/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/litemall-admin-api/litemall-admin-api.jar
/litemall-os-api/litemall-os-api.jar
/litemall-wx-api/litemall-wx-api.jar
/litemall-admin/dist.tar
24 changes: 24 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

1. 项目进一步打包到deploy文件夹中:
* litemall-os-api模块编译得到的litemall-os-api-0.1.0.jar 保存到deploy的litemall-os-api文件夹中,同时重命名成litemall-os-api.jar
* litemall-wx-api模块编译得到的litemall-wx-api-0.1.0.jar 保存到deploy的litemall-wx-api文件夹中,同时重命名成litemall-wx-api.jar
* litemall-admin-api模块编译得到的litemall-admin-api-0.1.0.jar 保存到deploy的litemall-admin-api文件夹中,同时重命名成litemall-admin-api.jar
* litemall-admin模块编译以后,把dist文件夹压缩,然后放到deploy的litemall-admin文件夹中。

2. 使用FileZilla把deploy整个文件夹上传到云主机的/home/ubuntu文件夹中

3. 使用PuTTY登陆云主机

4. 运行脚本部署运行

```bash
sudo ./deploy/bin/deploy.sh
```

5. 测试部署是否成功
请确保litemall的Spring Boot应用模块所对应的端口已经打开;
然后测试是否能够访问(xxx.xxx.xxx.xxx是云主机IP):

> http://xxx.xxx.xxx.xxx:8081/storage/index/index
> http://xxx.xxx.xxx.xxx:8082/wx/index/index
> http://xxx.xxx.xxx.xxx:8083/admin/index/index
24 changes: 24 additions & 0 deletions deploy/bin/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

#部署litemall-admin静态文件应用
cd /home/ubuntu/deploy/litemall-admin
rm -rf dist
mkdir dist
tar -zxvf dist.tar -C dist
cd .

#部署三个Spring Boot应用
#如果服务已经启动,则尝试停止
sudo /etc/init.d/litemall-os-api stop
sudo /etc/init.d/litemall-wx-api stop
sudo /etc/init.d/litemall-admin-api stop

#部署Spring Boot应用成服务
sudo ln -f -s /home/ubuntu/deploy/litemall-os-api/litemall-os-api.jar /etc/init.d/litemall-os-api
sudo ln -f -s /home/ubuntu/deploy/litemall-wx-api/litemall-wx-api.jar /etc/init.d/litemall-wx-api
sudo ln -f -s /home/ubuntu/deploy/litemall-admin-api/litemall-admin-api.jar /etc/init.d/litemall-admin-api

#启动服务
sudo /etc/init.d/litemall-os-api restart
sudo /etc/init.d/litemall-wx-api restart
sudo /etc/init.d/litemall-admin-api restart
2 changes: 2 additions & 0 deletions deploy/litemall-admin-api/litemall-admin-api.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUN_ARGS=--spring.profiles.active=prod
JAVA_OPTS=
2 changes: 2 additions & 0 deletions deploy/litemall-os-api/litemall-os-api.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUN_ARGS=--spring.profiles.active=prod
JAVA_OPTS=
2 changes: 2 additions & 0 deletions deploy/litemall-wx-api/litemall-wx-api.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
RUN_ARGS=--spring.profiles.active=prod
JAVA_OPTS=
Loading

0 comments on commit 6c14c43

Please sign in to comment.