Image upload sample API with lossless compression using task queue processing
This Project uses Sqlite3 as database.
The steps below will get you up and running with a local development environment. We assume you have the following installed:
- pip
- virtualenv
First make sure to create and activate a virtualenv, then open a terminal at the project root and install the requirements for local development:
$ pip install -r requirements.txt
Run django migrations command for creating table:
$ python manage.py migrate
You can now run the usual Django runserver command (replace yourapp with the name of the directory containing the Django project):
$ python manage.py runserver
For queue service, its needed to setup redis-server and start the redis server on port 6379.
$ celery -A dodjapp worker --beat -l info
For testing, you can use these commands:
$ python manage.py test
For panapp test, you can use this:
$ python manage.py test imgapp