Skip to content

Commit b8d072e

Browse files
committed
📝 Update README
1 parent 3aebbe0 commit b8d072e

File tree

1 file changed

+27
-40
lines changed

1 file changed

+27
-40
lines changed

README.md

Lines changed: 27 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -32,46 +32,33 @@ To run your FastAPI app for development, you can use the `fastapi dev` command:
3232

3333
```console
3434
$ fastapi dev main.py
35-
INFO Using path main.py
36-
INFO Resolved absolute path /home/user/code/awesomeapp/main.py
37-
INFO Searching for package file structure from directories with __init__.py files
38-
INFO Importing from /home/user/code/awesomeapp
39-
40-
╭─ Python module file ─╮
41-
│ │
42-
│ 🐍 main.py │
43-
│ │
44-
╰──────────────────────╯
45-
46-
INFO Importing module main
47-
INFO Found importable FastAPI app
48-
49-
╭─ Importable FastAPI app ─╮
50-
│ │
51-
│ from main import app │
52-
│ │
53-
╰──────────────────────────╯
54-
55-
INFO Using import string main:app
56-
57-
╭────────── FastAPI CLI - Development mode ───────────╮
58-
│ │
59-
│ Serving at: http://127.0.0.1:8000 │
60-
│ │
61-
│ API docs: http://127.0.0.1:8000/docs │
62-
│ │
63-
│ Running in development mode, for production use: │
64-
│ │
65-
│ fastapi run │
66-
│ │
67-
╰─────────────────────────────────────────────────────╯
68-
69-
INFO: Will watch for changes in these directories: ['/home/user/code/awesomeapp']
70-
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
71-
INFO: Started reloader process [56345] using WatchFiles
72-
INFO: Started server process [56352]
73-
INFO: Waiting for application startup.
74-
INFO: Application startup complete.
35+
36+
FastAPI Starting development server 🚀
37+
38+
Searching for package file structure from directories with __init__.py files
39+
Importing from /home/user/code/fastapi-cli
40+
41+
module 🐍 main.py
42+
43+
code Importing the FastAPI app object from the module with the following code:
44+
45+
from main import app
46+
47+
app Using import string: main:app
48+
49+
server Server started at http://127.0.0.1:8000
50+
server Documentation at http://127.0.0.1:8000/docs
51+
52+
tip Running in development mode, for production use: fastapi run
53+
54+
Logs:
55+
56+
INFO Will watch for changes in these directories: ['/home/user/code/fastapi-cli']
57+
INFO Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
58+
INFO Started reloader process [4106097] using WatchFiles
59+
INFO Started server process [4106120]
60+
INFO Waiting for application startup.
61+
INFO Application startup complete.
7562
```
7663

7764
</div>

0 commit comments

Comments
 (0)