This is the basic Flaskr blog that you build over in the tutorial
We are reusing this as a coding homework
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. Get the repository using the following commands in a terminal on Linux, Mac, or Windows:
# clone the repository
$ git clone [email protected]:gotrecha/sblog.git
$ cd sblog
$ python3 -m venv venv
$ . venv/bin/activate
$ py -3 -m venv venv
$ venv\Scripts\activate.bat
$ pip install -e .
$ export FLASK_APP=sblog
$ export FLASK_ENV=development
$ flask init-db
$ flask run
> set FLASK_APP=sblog
> set FLASK_ENV=development
> flask init-db
> flask run
Open http://127.0.0.1:5000 in a browser.
$ pip install '.[test]'
$ pytest
$ coverage run -m pytest
$ coverage report
$ coverage html # open htmlcov/index.html in a browser
- Switch to the Issues page in the github UI
- Select one of the enhancements listed for implementation
- Create a new branch called feature-temperature-yourname, feature-register-yourname, or feature-comment-yourname depending on the enhancement selected
- Update your working directory to the new branch
- Implement the enhancement
- Push the changes to the remote branch
- Submit a pull request for review of the bug fix implementation
- Select a second enhancement listed for implementation
- Repeat steps 3 - 8
- Send an email indicating completion of the homework!