Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nature1995/vue-django-shop-frontend

A Vue.js frontend and Django REST framework backend shop website. (生鲜超市前端代码)
https://github.com/nature1995/vue-django-shop-frontend

django django-rest-framework frontend-backend-seperation vue

Last synced: 3 months ago
JSON representation

A Vue.js frontend and Django REST framework backend shop website. (生鲜超市前端代码)

Awesome Lists containing this project

README

        

# Vue-Django-Shop-Frontend(生鲜超市前端代码)

[![python3](https://img.shields.io/badge/python-3-blue.svg)](https://www.python.org/downloads/)
[![django3.0.0](https://img.shields.io/badge/django-3.0.0-brightgreen.svg)](https://www.djangoproject.com/)

-------------------------------------------------------------------

#### 前端:
- Vue

#### 后端:
- Python 3.6, 3.7 and 3.8
- Django 1.11, 2.1, 2.2 and 3.0
- Django Rest Framework 3.9, 3.10 and 3.11

#### 提升与改进
1. 使用最新的django-rest-framework-simplejwt代替django-rest-framework-jwt,由于原作者已不再维护该项目。
2. 加入腾讯云短信发送相关代码
3. 配合django-rest-framework-simplejwt修复第三方登录时,用户前端显示bug。
4. 修复alipay密钥存储格式导致的Incorrect padding问题
5. 修复热门搜索接口
6. 修复部分前端问题。

#### 项目资源
[Vue前端代码](https://github.com/nature1995/Vue-Django-Shop-Frontend)
[Django后端代码](https://github.com/nature1995/Vue-Django-Shop-Website)

项目视频与原版文件: 链接:https://pan.baidu.com/s/1elQ0DJ-b0hB6W4ihJcK3mQ 密码:ndzt

#### 体验地址:
前端:http://35.172.134.69:8000/index/
后端:http://35.172.134.69:8000/
#### Vue环境搭建
**国内:**
1. node.js
https://nodejs.org/

2. cnpm
```bash
npm install -g cnpm --registry=https://registry.npm.taobao.org
```

4. 更改./src/api/api.js里的接口地址
```js
let local_host = 'http://127.0.0.1:8000';
```

5. 运行
```bash
cnpm run dev
```

**国外:**
1. node.js
https://nodejs.org/

2. 安装依赖
```
npm install
```

3. 运行
```
npm run dev
```

## 参考文档
Django3.0: https://docs.djangoproject.com/zh-hans/3.0/
Django REST framework: https://www.django-rest-framework.org/
DRF-extensions: http://chibisov.github.io/drf-extensions/docs/
django-rest-framework-simplejwt: https://github.com/davesque/django-rest-framework-simplejwt
django-social-auth: https://github.com/omab/django-social-auth
xadmin: https://xadmin.readthedocs.io/en/docs-chinese/
支付宝沙箱:https://openhome.alipay.com/platform/appDaily.htm
腾讯云发送短信API: https://cloud.tencent.com/document/api/382/38778
django-redis 中文文档: https://django-redis-chs.readthedocs.io/zh_CN/latest/#
Python Social Auth: https://python-social-auth.readthedocs.io/en/latest/
redis数据库安装参考: https://www.jianshu.com/p/035be70daf2d