Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wesleygrimes/piedmont
https://github.com/wesleygrimes/piedmont
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wesleygrimes/piedmont
- Owner: wesleygrimes
- License: bsd-3-clause
- Created: 2020-12-17T01:39:27.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-17T21:31:08.000Z (about 4 years ago)
- Last Synced: 2024-12-11T05:05:17.971Z (29 days ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.rst
Awesome Lists containing this project
README
piedmont
======The basic blog app built in the Flask `tutorial`_.
.. _tutorial: https://flask.palletsprojects.com/tutorial/
Install
-------**Be sure to use the same version of the code as the version of the docs
you're reading.** You probably want the latest tagged version, but the
default Git version is the master branch. ::# clone the repository
$ git clone https://github.com/pallets/flask
$ cd flask
# checkout the correct version
$ git tag # shows the tagged versions
$ git checkout latest-tag-found-above
$ cd examples/tutorialCreate a virtualenv and activate it::
$ python3 -m venv venv
$ . venv/bin/activateOr on Windows cmd::
$ py -3 -m venv venv
$ venv\Scripts\activate.batInstall Flaskr::
$ pip install -e .
Or if you are using the master branch, install Flask from source before
installing Flaskr::$ pip install -e ../..
$ pip install -e .Run
---::
$ export FLASK_APP=flaskr
$ export FLASK_ENV=development
$ flask init-db
$ flask runOr on Windows cmd::
> set FLASK_APP=flaskr
> set FLASK_ENV=development
> flask init-db
> flask runOpen http://127.0.0.1:5000 in a browser.
Test
----::
$ pip install '.[test]'
$ pytestRun with coverage report::
$ coverage run -m pytest
$ coverage report
$ coverage html # open htmlcov/index.html in a browser