Note :- This Setup is for ubuntu(linux) (Similar command you can use for other OS)
Download code from https://github.com/rupeshpatil/webApp
To setup virtual environment, We have to install some additional software.
Install virtualenv, virtualenvwrapper
- sudo apt-get install python-setuptools python-dev build-essential
- sudo easy_install pip
- sudo pip install virtualenv virtualenvwrapper
- mkdir ~/.virtualenvs
- mkdir ~/.pip_download_cache
Add following lines in your ~/.bashrc file (Optional)
- If not exists then you can create .bashrc file
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_DOWNLOAD_CACHE=$HOME/.pip_download_cache
export PIP_RESPECT_VIRTUALENV=true
_Make sure you have installed libmysqlclient-dev package on ubuntu
Setup your environment and activate it
mkvirtualenv projectname --no-site-packages
workon projectname
Install requirements.txt via pip
pip install -r requirements.txt
python app.py
Flask, Mysql, SQLALchemy
Flask is a "microframework" primarily aimed at small applications with simpler requirements. If not came with built in ORM or any other framework, Developer can choose development as they want, For ORM development developer can choose SQLAlchemy. Flask BSD-derived permissive licenses. Flask communties aren't large like Django but they are active on mailing and IRC