@@ -30,4 +30,109 @@ <h1>Frequently Asked Questions</h1>
3030 < p > This is a useful to start the development with pre-defined template and best practices and define folder
3131 structure.</ p >
3232 </ details >
33- </ div >
33+ </ div >
34+ < div id ="technical-faq " class ="faq-container ">
35+ < h1 > Technical FAQ</ h1 >
36+
37+ < details >
38+ < summary > Which Python version is supported?</ summary >
39+ < p >
40+ Python ≥ 3.11 is required. Verify using:
41+ </ p >
42+ < pre > < code > python --version</ code > </ pre >
43+ </ details >
44+
45+ < details >
46+ < summary > How do I install dependencies?</ summary >
47+ < p >
48+ Use the Makefile command:
49+ </ p >
50+ < pre > < code > make install</ code > </ pre >
51+ < p >
52+ This runs < code > poetry install</ code > internally.
53+ </ p >
54+ </ details >
55+
56+ < details >
57+ < summary > How do I run the Streamlit app?</ summary >
58+ < pre > < code > make dev</ code > </ pre >
59+ < p >
60+ This executes < code > poetry run sample dev</ code > .
61+ </ p >
62+ </ details >
63+
64+ < details >
65+ < summary > How do I run the FastAPI server?</ summary >
66+ < pre > < code > make api</ code > </ pre >
67+ < p >
68+ This executes < code > poetry run sample api</ code > .
69+ </ p >
70+ </ details >
71+
72+ < details >
73+ < summary > How do I run linting and type checks?</ summary >
74+ < pre > < code > make lint</ code > </ pre >
75+ < p >
76+ This runs ruff, black (check mode), and mypy.
77+ </ p >
78+ </ details >
79+
80+ < details >
81+ < summary > How do I auto-format the code?</ summary >
82+ < pre > < code > make format</ code > </ pre >
83+ < p >
84+ This runs black and ruff with auto-fix enabled.
85+ </ p >
86+ </ details >
87+
88+
89+ < details >
90+ < summary > How do I clean cache and build artifacts?</ summary >
91+ < pre > < code > make clean</ code > </ pre >
92+ < p >
93+ This removes __pycache__, mypy cache, pytest cache, and build artifacts.
94+ </ p >
95+ </ details >
96+
97+ < details >
98+ < summary > Where is the virtual environment created?</ summary >
99+ < p >
100+ Poetry manages the virtual environment automatically.
101+ To inspect:
102+ </ p >
103+ < pre > < code > poetry env info</ code > </ pre >
104+ </ details >
105+
106+ < details >
107+ < summary > When should I regenerate poetry.lock?</ summary >
108+ < p >
109+ Only when adding or upgrading dependencies.
110+ </ p >
111+ < pre > < code > poetry lock --no-cache --regenerate</ code > </ pre >
112+ < p >
113+ Avoid unnecessary lock file changes in pull requests.
114+ </ p >
115+ </ details >
116+
117+ < details >
118+ < summary > What if pymongo is not found?</ summary >
119+ < p >
120+ MongoDB support is an optional extra dependency.
121+ Install using:
122+ </ p >
123+ < pre > < code > pip install sample[mongo]</ code > </ pre >
124+ < p >
125+ If using Poetry:
126+ </ p >
127+ < pre > < code > poetry install --extras "mongo"</ code > </ pre >
128+ </ details >
129+
130+ < details >
131+ < summary > Are secrets allowed inside the repository?</ summary >
132+ < p >
133+ No. Never commit secrets. Use environment variables or external secret managers.
134+ Maintain a < code > .env.example</ code > file for documentation purposes.
135+ </ p >
136+ </ details >
137+
138+ </ div >
0 commit comments