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.
 
 
 
 
gtitov 6115ce69e4
🖌️
3 years ago
diagram msc 3 years ago
gui 🖌️ 3 years ago
pictures first commit 4 years ago
.gitignore add scheme 4 years ago
main.py comment out log 3 years ago
questions.json 🚀 close #1 add multiselect questions 3 years ago
readme.md ✍️ 3 years ago
requirements.txt add 3 years ago
settings.py initial files to variables 3 years ago
students.json usable api 4 years ago

readme.md

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.

Для установки зависимостей в командной строке (PowerShell) выполнить

pip install -r requirements.txt

В командной строке выполнить

python -m uvicorn main:app --host=0.0.0.0

Интерфейс будет доступен по адресу работы uvicorn

INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)  # здесь фиксируем порт — это число после двоеточия

Для работы в локальной сети узнать адрес компьютера в локальной сети с помощью 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

В файле gui/main.js заменить все localhost на полученный ip-адрес, например, 123.32.43.54, чтобы все запросы выполнялись к головному компьютеру

Для доступа к тесту с компьютера в локальной сети перейти по URL такого вида ip-адрес:порт, например, 123.32.43.54:8000