Back to directory
eddyizm avatar

HTMX_FastAPI_Login

HTMX and FastAPI login demo using JWT. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/eddyizm/HTMX_FastAPI_Login.git

63

Stars

12

Forks

1

Watchers

MIT

License

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