You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.4 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

В командной строке (cmd, PowerShell) выполнить
```PowerShell
pip install -r requirements.txt
python -m uvicorn main:app --host=0.0.0.0
```
Интерфейс будет доступен по адресу работы uvicorn
```PowerShell
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit) # здесь фиксируем порт — это число после двоеточия
```
Для работы в локальной сети узнать адрес компьютера в локальной сети с помощью PowerShell
```PowerShell
Get-NetIPAddress
# (Get-NetIPAddress | Where-Object {$_.AddressState -eq "Preferred" -and $_.ValidLifetime -lt "24:00:00"}).IPAddress # не тестировал
IPAddress : 123.32.43.54
InterfaceIndex : 27
InterfaceAlias : Подключение по локальной сети* 1
AddressFamily : IPv4
Type : Unicast
PrefixLength : 16
PrefixOrigin : WellKnown
SuffixOrigin : Link
AddressState : Tentative
ValidLifetime : Infinite ([TimeSpan]::MaxValue)
PreferredLifetime : Infinite ([TimeSpan]::MaxValue)
SkipAsSource : False
PolicyStore : ActiveStore
```
Для доступа к тесту с компьютера в локальной сети перейти по URL такого вида `ip-адрес:порт`, например, `123.32.43.54:8000`