Skip to content

Stozhkov/photobook-in-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hello!

##Here's my test case, prepared to run in containers. Original repository is here https://github.com/Stozhkov/photobook

Load config data: python manage.py loaddata settings.json

Documentation for API available: http://127.0.0.1:8000/swagger/

Registration: http://127.0.0.1:8000/api/v1/auth/users/

Get token: http://127.0.0.1:8000/api/v1/auth/jwt/create

Get list photos: http://127.0.0.1:8000/api/v1/photos/

Get list of public photos: http://127.0.0.1:8000/api/v1/photos/public/

Upload photo: http://127.0.0.1:8000/api/v1/photos/photo/create

Get the photo: http://127.0.0.1:8000/api/v1/photos/photo/<photo id>/

Update name photo: http://127.0.0.1:8000/api/v1/photos/photo/<photo id>/

Delete photo: http://127.0.0.1:8000/api/v1/photos/photo/<photo id>/

Get the comment: http://127.0.0.1:8000/api/v1/photos/comment/<comment id>/

Create comment: http://127.0.0.1:8000/api/v1/photos/comment/create/

Get comment list for the photo: http://127.0.0.1:8000/api/v1/photos/photo/<photo id>/comments/

##Celery Start worker: celery -A photobook worker -l INFO

##Flower Start worker: flower -A photobook --port=5555

##Sending e-mail For sending email every day add to cron next task: 0 9 * * * python /path/to/wor/dir/manage.py send_email_daily

For sending email every month add to cron next task: 0 9 1 * * python /path/to/wor/dir/manage.py send_email_daily

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published