Skip to content

MuhammadSaim/flask-drowsiness-detection

Repository files navigation

Flask Drowsiness Detection

Requirements

  • Python
  • Flask
  • Flask SQLAlchemy
  • Flask Migrate

Technologies

Python Flask PyPi MySQL PyCharm jQuery Tailwind CSS AJAX JavaScript HTML5 SASS OpenCV

Configuration

  1. Clone the repo
git clone [email protected]:MuhammadSaim/flask-drowsiness-detection.git
  1. Step into folder
cd blog
  1. Create virtual environment
virtualenv venv 
  1. Activate the venv
source venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Copy the .env.example to .env and setup your DB on .env

  2. Setup the DB

SQLALCHEMY_DATABASE_URI="mysql+mysqlconnector://DB_USERNAME:[email protected]:3306/DB_DATABASE"
  1. Run the migrations.
flask db upgrade
  1. Install frontend dependencies
# if you have yarn
yarn install

# if you have npm
npm install
  1. Build the assets
# if you have yarn
yarn watch
# or
yarn dev

# if you have npm
npm run watch
# or
npm run dev
  1. Run the flask app
python run.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published