$ git clone https://github.com/code-with-rashid/image-processing.git
Make sure Docker and Docker Compose are installed on your system. Navigate to the project directory and run the following commands:
$ make redo-db
Access the APIs at:
http://127.0.0.1:8000/api/schema/swagger/
$ git clone https://github.com/code-with-rashid/image-processing.git
Ensure 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.txt
Run the following command to apply migrations into the database:
$ python manage.py migrate
Run the following management command to process the Excel file and save resized images into the database:
$ python manage.py process_excel_images data/img.csv
Run the following command inside the project directory to start the server:
$ python3 manage.py runserver 8000
Open 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