Structured-flask-app

Requirements

Setup

  • open the terminal or commadline
  • clone app from flask-book-app, git clone https://github.com/Otumian-empire/flask-book-app.git
  • change directory into the root folder, cd flask-book-app
  • install the dependencies, pipenv install
  • instead, if other virtual environment exist other pipenv, pip install -r requirements.txt (change pip to pip3 if there is an error)
  • satisfy the configurations below in Config
  • activate the virtual environment
  • run app, flask run

Config

Create a .env.local in the root directory with the credentials below:

DB_HOST=""
DB_NAME="book_db"
DB_PASSWORD=""
DB_USER=""

Dependencies

click==7.1.2
Flask==1.1.2
itsdangerous==1.1.0
Jinja2==2.11.2
MarkupSafe==1.1.1
mysql-connector-python==8.0.21
protobuf==3.13.0
python-dotenv==0.14.0
six==1.15.0

Resource