Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackstorm/vue-upload-file-to-qiniu
Vue upload images to qiniu(s3 like) storage and support async upload Vue. 上传图片到七牛,支持服务端 token 策略、自动上传等
https://github.com/blackstorm/vue-upload-file-to-qiniu
axios docker falsk python qiniu-sdk vue yarn
Last synced: 29 days ago
JSON representation
Vue upload images to qiniu(s3 like) storage and support async upload Vue. 上传图片到七牛,支持服务端 token 策略、自动上传等
- Host: GitHub
- URL: https://github.com/blackstorm/vue-upload-file-to-qiniu
- Owner: blackstorm
- License: mit
- Created: 2017-11-10T10:41:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T07:00:38.000Z (almost 7 years ago)
- Last Synced: 2024-11-24T21:33:44.429Z (about 1 month ago)
- Topics: axios, docker, falsk, python, qiniu-sdk, vue, yarn
- Language: JavaScript
- Homepage: https://vue-qiniu-uploader.herokuapp.com/
- Size: 664 KB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
文章地址 [Vue 2 上传图片或文件到七牛][1]
# How to use
## flask app
提供直传七牛 token 支持。
进入 ``app`` 根目录下,执行相关命令。
1. 安装依赖
```shell
pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
```2. 运行
```shell
python3 app.py
```默认端口 ``5000``
### 使用 Docker
```shell
docker build -t blackstorm/flaskapp .
docker run --name app -it -p 5000:500 blackstorm/flaskapp
```## vue
这里是我们的前端项目。
1. 安装依赖运行
如果您使用的是 ``yarn``
```shell
yarn install && yarn run dev
```或者 ``npm``
```shell
npm install && npm run dev
```默认端口 ``8081``
[1]: https://utf-8.live/fe/vue2-upload-file-to-qiniu.html