Skip to content

mbrsagor/flask-curd-app

Repository files navigation

Flask-curd-app

The following steps will walk you thru installation on a Mac. Linux should be similar. It's also possible to develop on a Windows machine, but I have not documented the steps. If you've developed the Flask apps on Windows, you should have little problem getting up and running.

Prerequisites
  • At lest Python clear concept.
  • Frontend like HTML5, CSS3, Bootstrap.
  • Basic Database

Install project on your local development server.

1st make sure in your system install python3.8 and virtualenv. Then open your terminal and please follow the instructions.

git clone https://github.com/mbrsagor/flask-curd-app.git
cd flask-crud-app
virtualenv venv --python=python3.8
source venv/bin/activate
pip install -r requirements.txt
python app.py

Migarte sqlite.db

Active your virtualenv then open shell after that, follow the commands

from models import db
db.create_all()

Set environment variables in terminal

export FLASK_APP=app.py
export FLASK_ENV=development
Run the app
flask run

Install SQL db

pip install Flask-SQLAchemy