README.rst
This file
Path
examples/tutorial/README.rst
77 lines · 1.4 KiB
Last changed by
Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
History of this fileTake it
The walk stopped after 200 commits: lines older than be46acb point at it.
add changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 1–16why, one step back1Flaskr2======34The basic blog app built in the Flask `tutorial`_.56.. _tutorial: http://flask.pocoo.org/docs/tutorial/789Install10-------1112**Be sure to use the same version of the code as the version of the docs13you're reading.** You probably want the latest tagged version, but the14default Git version is the master branch. ::1516 # clone the repositoryAdd prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 17–18why, one step back17 $ git clone https://github.com/pallets/flask18 $ cd flaskadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
line 19why, one step back19 # checkout the correct versionAdd prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 20–22why, one step back20 $ git tag # shows the tagged versions21 $ git checkout latest-tag-found-above22 $ cd examples/tutorialadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 23–25why, one step back2324Create a virtualenv and activate it::25Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 26–27why, one step back26 $ python3 -m venv venv27 $ . venv/bin/activateadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 28–30why, one step back2829Or on Windows cmd::30Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 31–32why, one step back31 $ py -3 -m venv venv32 $ venv\Scripts\activate.batadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 33–35why, one step back3334Install Flaskr::35Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
line 36why, one step back36 $ pip install -e .add changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 37–40why, one step back3738Or if you are using the master branch, install Flask from source before39installing Flaskr::40Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 41–42why, one step back41 $ pip install -e ../..42 $ pip install -e .add changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 43–49why, one step back434445Run46---4748::49Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 50–53why, one step back50 $ export FLASK_APP=flaskr51 $ export FLASK_ENV=development52 $ flask init-db53 $ flask runadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 54–56why, one step back5455Or on Windows cmd::56Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 57–60why, one step back57 > set FLASK_APP=flaskr58 > set FLASK_ENV=development59 > flask init-db60 > flask runadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 61–69why, one step back6162Open http://127.0.0.1:5000 in a browser.636465Test66----6768::69Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 70–71why, one step back70 $ pip install '.[test]'71 $ pytestadd changelog for docs theme and tutorialDavid Lordbefore adoptionbe46acb
lines 72–74why, one step back7273Run with coverage report::74Add prefix for all commands in documentation (#2877)Grey Libefore adoption21b0aa6
lines 75–77why, one step back75 $ coverage run -m pytest76 $ coverage report77 $ coverage html # open htmlcov/index.html in a browser