Password generation app using Svelte and FastAPI.
Frontend: npm or yarn
cd PasswordGenarator
yarn install
yarn run dev
Backend: Python 3.9+, Poetry
cd PasswordGenarator/api
poetry install
poetry shell
uvicorn api.main:app --host 0.0.0.0 --port 8000 --reload
Note: Wrote "pynvim" in pyproject.toml. It is for the defx plugin.
Note: My backend env is Ubuntu on Parallels. So, it starts with 0.0.0.0:8000 to request from Svelte (macOS). Would you please start uvicorn according to the env you are going to try?
To use Python's "secrets" lib for password generation, I decided to use them. Generally, you wouldn't need to communicate with a server to generate a password. I wanted to use a secure random number to create it.