Skip to content

A basic Flask RESTful APIs implementation, design to upload and resize images.

Notifications You must be signed in to change notification settings

Fabio-Ottaviani-Dev/image-upload-and-thumbnail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask image upload and thumbnail

Overview

A basic Flask RESTful APIs implementation, design to upload and resize images.

Setup

Virtual Environment

Instructions for setting up a virtual environment for your platform can be found in the python docs

Venv on Ubuntu 18.04 LTS

# https://linuxize.com/post/how-to-create-python-virtual-environments-on-ubuntu-18-04/
sudo apt install python3-venv
# Within the directory
python3 -m venv env && source env/bin/activate

Dependencies

# with active virtual environment
pip3 install -r requirements.txt

Running the server

# flask run --help
export FLASK_APP=app && export FLASK_ENV=development && flask run --port 5001

Test

To test the application you need:

  1. Get Postman.
  2. Import the related test file.
  3. Go to the Tab: Body / VALUE and select a file.

About

A basic Flask RESTful APIs implementation, design to upload and resize images.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages