Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 1.03 KB

README.md

File metadata and controls

14 lines (12 loc) · 1.03 KB

Django app and Kong CDN prototype demo app.

  • First of all make sure you have installed django. and also install django_cloudinary_storage in this example I use cloudinary as image provider.

  • open the project and run the py manage.py migrate in order to create migrations. A sqlite file will be create.

  • run django app in port 9000 using this command py manage.py runserver 9000

  • The run docker-compose up to run the Kong gateway and make sure you have Kong image in your docker.

  • For uploading image use this proxy url http://localhost:8000/media/upload/ and in body of request add file_path.

  • For retrieving the image use this proxy url http://localhost:8000/media/retrieve?file_name=nameOfFile and in the params give the file name which already has been uploaded. Note: In this project I did not focused on Django a lot although we can do more refactor in django itself.

  • 20d46142-1c8f-4dd6-8e5d-48d154697d2f.webm