Skip to content

Commit 6127e92

Browse files
authored
Update readme.md
1 parent 3b445f3 commit 6127e92

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

readme.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ async def get_stories_with_detail(session: AsyncSession = Depends(db.get_session
160160

161161
## Run code
162162

163+
OpenAPI, aka Swagger
163164
```shell
164165
python -m venv venv
165166
source venv/bin/activate
@@ -170,6 +171,23 @@ uvicorn src.main:app --port=8000 --reload
170171

171172
You can execute it in swagger to view the return value of each API
172173

174+
with UI
175+
```shell
176+
python -m venv venv
177+
source venv/bin/activate
178+
pip install -r requirement.txt
179+
uvicorn src.main:app --port=8001 --reload
180+
181+
cd fe-demo
182+
npm install
183+
# generate sdk
184+
npm run generate-client
185+
186+
npm run dev
187+
```
188+
189+
or visit the interactive UI.
190+
173191

174192
## Features & Scenarios
175193

0 commit comments

Comments
 (0)