-
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 commandpy manage.py runserver 9000
-
The run
docker-compose up
to run theKong
gateway and make sure you haveKong
image in your docker. -
For uploading image use this proxy url
http://localhost:8000/media/upload/
and in body of request addfile_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
-
Notifications
You must be signed in to change notification settings - Fork 0
Paiman-Rasoli/kong-gateway
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Python app integrated with Kong gateway in order to upload file to external provider and share them using CDN.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published