A FastAPI application with Jinja2 templates and Tailwind CSS.
# If using pip
pip install -r requirements.txt
# If using uv
uv pip install -r requirements.txt
This project uses Tailwind CSS for styling:
npm run dev
to watch for changes and automatically rebuild CSSnpm run build
to generate an optimized, minified CSS fileWhen adding Tailwind classes to your HTML templates, the CSS file will automatically include only the classes you use, resulting in a minimal file size.
uv run fastapi dev main.py
Navigate to http://localhost:8000/items/1 to see the application in action.