This is a simple starter template for creating a webapps using FastAPI.
- username based authentication and protected routes
- DaisyUI, TailwindCSS and Lucide icons for styling through MonsterUI
- Clone the repository
- Create a virtual environment
python -m venv .venv- Install the dependencies
pip install -r requirements.txt- Run the app
uvicorn main:app --reloadDaisyUI provides a lot of themes. Change to appropriate theme by modifying the tailwind.config attribute and the input of fast_app in main.py.
├── README.md
├── auth
│ └── loginHandler.py
├── backend
│ └── index.py
├── main.py
├── pages
│ ├── components
│ │ ├── header.py
│ │ └── loginDialogIndex.py
│ └── index.py
├── pyproject.toml
├── requirements.txt
└── utils.py
- The FastHTML documentation at https://docs.fastht.ml/ provides comprehensive information on using the framework.
- For LLM assisted development, add the file at https://docs.fastht.ml/llms-ctx.txt as context.
- When converting DaisyUI or HTML code to FastHTML Python code, the converter tool at https://h2f.answer.ai/ can be helpful.
Note: This is a simple starter template and is not production ready. Use it as a starting point for your projects.