Monday, September 21, 2015
Flask is a python microframework for building web applications or for rapid prototyping one.
sudo easy_install virtualenv
python3 -m venv venv --- create a venv directory for the project
source venv/bin/activate -- activate the virtual env.
pip install flask -- install flask
The idea for virtual environment is to import packages like flask only in a copy of the python
Virtual environment and not pollute the global python installation.
An example flask application:
from flask import Flask, render_template
app = Flask(__name__)
return render_template('user.html', name=name)
if __name__ == '__main__':
It will start the web server http://127.0.0.1:5000
If you browse to http://127.0.0.1:5000/user/watsh
It should o/p Hello, watsh in browser.
Book notes: Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems, by Martin Kleppmann
My notes from the excellent book on how software has evolved to handle data from hierarchical databases to the NoSQL - https://www.goodrea...
I hit this issue recently which occurred on only one windows 7 host. The error was caused by this hard to guess reason ( http://support.mic...
Our project for CMPE 297 - Special Topics course. https://github.com/sjsucohort6/myconnect-app-ios [TBD - Demo video link will be add...
From Building Microservice Systems with Docker and Kubernetes by Ben Straub http://techbus.safaribooksonline.com/video/web-development/9...