Skip to content

momingxu/r

 
 

Repository files navigation

R

Upload file service with react. It's P's (react + es6+) version

Douban Intra Service http://r.dapps.douban.com/

Demo

The R Demo showcases r.

Get Started

git clone https://github.com/dongweiming/r
cd r
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
mkdir permdir
./setup_databases.sh
python app.py
open http://localhost:5000

Command Line

Example:

  • Command line: curl -F file=@"/tmp/1.png" http://p.dapps.douban.com/
  • Command line: curl -F file=@"/tmp/1.png" -F w=100 -F h=100 http://p.dapps.douban.com/
  • Resize image: http://p.dapps.douban.com/r/img_hash.jpg?w=300&h=200
  • Affine Transformation: http://p.dapps.douban.com/a/img_hash.jpg?w=300&h=300&a=0.86,0.5,-100,-0.5,0.86,50 (Rotate 30 degree clockwise and then translation 100 right, 50 up.)

About

Upload file service with react

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 35.3%
  • JavaScript 30.0%
  • Python 28.8%
  • HTML 4.8%
  • Shell 1.1%