https://github.com/muhammadsaim/flask-drowsiness-detection
https://github.com/muhammadsaim/flask-drowsiness-detection
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/muhammadsaim/flask-drowsiness-detection
- Owner: MuhammadSaim
- Created: 2023-08-22T03:42:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-30T05:53:02.000Z (about 1 year ago)
- Last Synced: 2025-03-30T06:24:43.434Z (about 1 year ago)
- Language: Python
- Size: 68.5 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Drowsiness Detection
## Requirements
- Python
- Flask
- Flask SQLAlchemy
- Flask Migrate
### Technologies












### Configuration
1. Clone the repo
```shell
git clone git@github.com:MuhammadSaim/flask-drowsiness-detection.git
```
2. Step into folder
```shell
cd blog
```
3. Create virtual environment
```shell
virtualenv venv
```
4. Activate the venv
```shell
source venv/bin/activate
```
5. Install the dependencies
```shell
pip install -r requirements.txt
```
6. Copy the .env.example to .env and setup your DB on .env
7. Setup the DB
```.dotenv
SQLALCHEMY_DATABASE_URI="mysql+mysqlconnector://DB_USERNAME:DB_PASSWORD@127.0.0.1:3306/DB_DATABASE"
```
8. Run the migrations.
```shell
flask db upgrade
```
9. Install frontend dependencies
```shell
# if you have yarn
yarn install
# if you have npm
npm install
```
10. Build the assets
```shell
# if you have yarn
yarn watch
# or
yarn dev
# if you have npm
npm run watch
# or
npm run dev
```
11. Run the flask app
```shell
python run.py
```