You can find source code from tutorial upto video number 6(User Authentication). After that you are free to fork this repo and complete the entire project.
You'll need python3.6 or above, use your version of python instead of 3.7 in procedures below.
- Clone and move into directory
git clone https://gitlab.com/amritpandey/flask-blog-2.git && cd flask-blog-2 - Setup virtual environment
python3.7 -m venv venv - Install dependencies
pip3 install requirements.txt - For now, we have to initialise db, so open up python repl and import db
from flaskblog import dband initialise bydb.create_all(). - Finally, run the project
python run.pyorflask runby exporting flaskblog to FLASK_APP in terminalexport FLASK_APP=flaskblog.
- Flask: http://flask.pocoo.org/docs/1.0/
- Jinja2: http://jinja.pocoo.org/docs/2.10/
- Sqllite3: https://docs.python.org/2/library/sqlite3.html
.
├── flaskblog
│ ├── __init__.py
│ ├── forms.py
│ ├── models.py
│ ├── routes.py
│ ├── static
│ │ └── main.css
│ └── templates
│ ├── about.html
│ ├── account.html
│ ├── home.html
│ ├── layout.html
│ ├── login.html
│ └── register.html
├── run.py

