Skip to content

escrichov/manage-images

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Manage Images

Upload images to the server and download them.

Develop

Create virtualenv

virtualenv env

Install requirements

env/bin/pip install -r requirements.txt

Run tests

env/bin/nosetests

Run test server

env/bin/python app.py

Run production server

env/bin/uwsgi --http :8000 --wsgi-file app.py

Install httpie

brew install httpie

Upload images

http POST localhost:8000/images Content-Type:image/jpeg < tests/fixtures/image.jpeg 
http POST localhost:8000/images Content-Type:image/png < tests/fixtures/image.png
http POST localhost:8000/images Content-Type:image/gif < tests/fixtures/image.gif

Get images

curl localhost:8000/images/20cb8df6412111e5a0f80242ac11000c.jpeg > image.jpeg

Deploy

Docker deployment

About

Upload images to the server and download them.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages