Skip to content

h-gj/oss-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Simple AliYun OSS Client For Saving Your File Stuffs.

Tech Stack

Frontend: React

Backend: Flask

Home Page

IQH51H.jpg

File List Page

IQb724.jpg

Setup

Setup Backend

git pull
pip install -r api/req.txt
export FLASK_APP=api/index.py [On Mac/Linux] OR set FLASK_APP=api/index.py [On Windows]

Create config file:

Under api/ directory, create a new file named settings.py

Past the following two lines into it:

OSS_ACCESS_KEY_ID = 'xxx'
OSS_ACCESS_KEY_SECRET = 'xxx'
OSS_BUCKET_NAME = 'xxx'
OSS_BUCKET_ENDPOINT = 'xxx'  #  ie: 'https://oss-cn-hongkong.aliyuncs.com'

Replace the 'xxx' with your real value.

[python -m] flask run

Setup Frontend

cd ui/
npm i
vim src/config.js  // edit `baseUrl` to point to your local backend server, ie: 'http://localhost:5000'.
npm start

Done

  • Support uploading on pasting.
  • Support multiple files uploading in one time.

Todo