- Python
- Flask
- Flask SQLAlchemy
- Flask Migrate
- Clone the repo
git clone [email protected]:MuhammadSaim/flask-drowsiness-detection.git
- Step into folder
cd blog
- Create virtual environment
virtualenv venv
- Activate the venv
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
-
Copy the .env.example to .env and setup your DB on .env
-
Setup the DB
SQLALCHEMY_DATABASE_URI="mysql mysqlconnector://DB_USERNAME:[email protected]:3306/DB_DATABASE"
- Run the migrations.
flask db upgrade
- Install frontend dependencies
# if you have yarn
yarn install
# if you have npm
npm install
- Build the assets
# if you have yarn
yarn watch
# or
yarn dev
# if you have npm
npm run watch
# or
npm run dev
- Run the flask app
python run.py