HTMX and FastAPI login demo using JWT
['fastapi', 'htmx', 'jinja2', 'jwt-auth', 'jwt-authentication', 'jwt-token', 'materialize-css', 'python', 'uvicorn']
HTMX and FastAPI login demo using JWT
 HTMX_FastAPI_Login
HTMX and FastAPI login demo.
### youtube video coming soon.
### Should I dockerize it? 
Please let me know if you would like to see a dockerfile added.
Start by setting up your virtual environment and activating it. 
```
# create virtual env
python -m venv env
# activate virtual env (linux)
source env/bin/activate
# activate virtual env (windows)
source env/Scripts/activate
```
Upgrade pip because for some reason this is still a thing. 
```
python -m pip install --upgrade pip
```
Then install the FastAPI and required libraries.  
*note you can just install the requirements.txt*
```
pip install -r requirements.txt
```
launch server
```
uvicorn main:app --reload
```
and open in [browser](http://localhost:8000/)    