Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 1.04 KB

README.md

File metadata and controls

69 lines (52 loc) · 1.04 KB

Flask Note App

Application for taking notes

Used Technologies:

  • Python: 3.10
  • MariaDB: 10.2
  • Flask: 2.2.2

Local Setup

First, create virtualenv if you want

python -m venv flask_note_env
Note: If you don't have venv than install it below way
python -m pip install venv

After, craete virtualenv active this env

. flask_note_env/bin/activate

After activation, need to install dependecies,

python -m pip install -r requirements.txt

Now set global env to run flask app

export FLASK_APP=main.py
export FLASK_ENV=development

Now, Run flask app,

Recommend: Before migration run flask server

flask run

For, Apply Migration:

  1. Create a migration repository
flask db init
  1. Create a migration script
flask db migrate -m "init migration"
  1. Apply the migration to the database
flask db upgrade

Run app with Docker

docker compose up --build

See output https://localhost:5001