$ git clone https://github.com/code-with-rashid/image-processing.gitMake sure Docker and Docker Compose are installed on your system. Navigate to the project directory and run the following commands:
$ make redo-dbAccess the APIs at:
http://127.0.0.1:8000/api/schema/swagger/
$ git clone https://github.com/code-with-rashid/image-processing.gitEnsure that python3 and pip3 are installed on your system. Inside the project's root directory, install requirements (consider using a virtual environment):
$ pip install -r ./requirements/local.txtRun the following command to apply migrations into the database:
$ python manage.py migrateRun the following management command to process the Excel file and save resized images into the database:
$ python manage.py process_excel_images data/img.csvRun the following command inside the project directory to start the server:
$ python3 manage.py runserver 8000Open Swagger UI to access all project APIs:
http://127.0.0.1:8000/api/schema/swagger/
Access the public Images List API to list and filter images stored in the database without authentication.
Users can upload an Excel file at the following URL, where the code will be applied, and the images will be saved in the database:
http://127.0.0.1:8000/images/process-csv/
Run the following command to execute test cases:
$ make test