This is a boilerplate for building Flask apps.
- Clone the repo
git clone https://github.com/cryptus-neoxys/flask-CRUD.git <name>
- Setup virtual environment
python -m venv venv/
- Switch to virtual environment for development (<venv> is your env name, here "venv")
- Windows (
cmd
)- Activate
<venv>\Scripts\acitvate
- Deactivate
<venv>\Scripts\deacitvate
- Activate
- Linux/Mac
- Activate
source <venv>/bin/activate
- Deactivate
deactivate
- Activate
- Windows (
- Install dependencies
pip install -r requirements.txt
- Setup DB
python db_init.py
- Run the app with
python app.py
- Open localhost:5000 to view your app