- Clone repository using
git clone https://github.com/TangiblePS/flask-vue-spa-image-upload.git
- Go to project directory
cd flask-vue-spa-image-upload
- Go to frontend directory
cd frontend
- Run
npm install
- Run
npm build
- Run
pip install -r requirements.txt
to install python dependencies - Run
FLASK_APP=run.py FLASK_DEBUG=1 flask run
to start the web server - Access
127.0.0.1:5000/upload
to upload an image and127.0.0.1:5000/api/upload
to view the uploaded image