This repository is backend of DermaSkin APP.
Project is created with:
- Python version: 3.7
- Flask
- Flask-Alchemy
- SQlite3
- Google Compute Engine (VM Instances)
- Google Cloud Bucket
To run this project locally setup Vagrant on local machine that has been installed vagrant using ssh:
> mkdir backend
> cd backend
> vagrant init debian/bullseye64
> vagrant up
> vagrant ssh
Login to Instance SSH
~$ sudo apt update && sudo apt -y upgrade
~$ sudo apt install python3-venv
~$ sudo apt install git
~$ git clone [email protected]:skidiss/Backend.git
~$ cd Backend
~$ pip install -r requirements.txt
~$ python
>> from app import db
>> db.create_all()
~$ gunicorn -w 4 0.0.0.0:5000 app:app