marty331/fasthtmx
소개
FastAPI-HTMX 데모 프로젝트
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFast-HTMX
Description
Fast-HTMX is a demo project of FastAPI and HTMX. The purpose of this project is to illustrate how to create a website with no JavaScript, using only HTML, CSS, and Python. HTMX is a plugin that allows this to be possible.
HTMX Attributes
The following HTMX attributes are used in this project:
- hx-get
- hx-post
- hx-trigger
- hx-target
- hx-push-url
- hx-indicator
- hx-swap
Structure
db - Database setup
models - Data models
schema - Pydantic models
services - Database services
static - Static files
templates - Contains files for each page and partials for all partial pages that are related to the main page of the directory which it is under.
viewmodels - View models for gathering data for pages and partials.
main.py - Main operational file for running FastAPI.
How to run
- Create virtual environment
- Activate virtual environment
- Install requirements
pip3 install -r requirements.txt - Run project
python3 -m uvicorn main:app --reloadUsing Docker
- Build image
docker build -t fast-htmx . - Create Database
touch sql_app.db - Run container
docker run -v $(pwd)/sql_app.db:/code/sql_app.db -d --name fast-htmx -p 8000:8000 fast-htmx
- Build image
관련 프로젝트 살펴보기
불러오는 중…