https://github.com/twtrubiks/flask-dropzone-wavesurfer
python flask-dropzone-wavesurfer 使用Python Flask 搭配 Dropzone.js 和 WaveSurfer.js
https://github.com/twtrubiks/flask-dropzone-wavesurfer
dropzone flask python tutorial wavesurfer
Last synced: 12 months ago
JSON representation
python flask-dropzone-wavesurfer 使用Python Flask 搭配 Dropzone.js 和 WaveSurfer.js
- Host: GitHub
- URL: https://github.com/twtrubiks/flask-dropzone-wavesurfer
- Owner: twtrubiks
- License: mit
- Created: 2016-08-28T14:38:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-28T15:14:07.000Z (over 9 years ago)
- Last Synced: 2025-03-28T19:53:44.050Z (12 months ago)
- Topics: dropzone, flask, python, tutorial, wavesurfer
- Language: CSS
- Homepage:
- Size: 588 KB
- Stars: 11
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# flask-dropzone-wavesurfer
flask-dropzone-wavesurfer 使用Python Flask 搭配 Dropzone.js 和 WaveSurfer.js
* [Demo](https://youtu.be/xPxZJBzia1Y)
使用Python [Flask](http://flask.pocoo.org/) 搭配 [Dropzone.js](http://www.dropzonejs.com/) (可拖曳檔案上傳) 以及 [WaveSurfer.js](https://wavesurfer-js.org/) (播放音樂)的簡單範例程式,希望大家會喜歡:smile:
## 特色
* 透過 [Dropzone.js](http://www.dropzonejs.com/) (可拖曳檔案上傳) 。
* 透過 [WaveSurfer.js](https://wavesurfer-js.org/) (播放音樂)。
* 使用Python [Flask](http://flask.pocoo.org/),輕鬆、簡單、快速。
## 執行說明
請先確定電腦有安裝 [Python](https://www.python.org/)
使用下列指令安裝套件
```
pip install -r requirements.txt
```
接著使用下列指令即可運行
```
python flask-dropzonejs.py
```
如下圖

接著用你的瀏覽器瀏覽 [http://127.0.0.1:5000/](http://127.0.0.1:5000/)
## 執行畫面
[http://127.0.0.1:5000/](http://127.0.0.1:5000/) 為首頁 ,首頁畫面很簡單

可拖曳想要上傳的音樂檔(mp3)以及圖片檔(.jpg .png .gif .jpeg)

檔案上傳完畢

接著可以重新整理網頁(F5),剛剛的資料會顯示在網頁上

上傳的檔案會被保存在以下路徑
flask-dropzone-wavesurfer\static\uploads
音樂也是可以播放的哦,點播放的小圖示即可。

## External JS
* [Dropzone.js](http://www.dropzonejs.com/)
* [WaveSurfer.js](https://wavesurfer-js.org/)
* [Font Awesome](http://fontawesome.io/)
## 執行環境
* Python 3.5.2
## License
MIT license