Git Product home page Git Product logo

marzban_mysql_streamlit's Introduction

Marzban Dashboard Project

Этот дашборд создан для визуализации статистик в проекте Marzban, используя MySQL для хранения данных.

Версия для SQLite тут image image image

Установка

Шаг 1: Подготовка конфигурационного файла

Первым делом, вам нужно подготовить файл конфигурации. Скопируйте config.yaml.example в новый файл с именем config.yaml и заполните все необходимые поля соответствующими значениями вашей установки Marzban и базы данных MySQL.

Пример:

credentials:
  ssh_host: 'your_ssh_host_here'
  ssh_port: your_ssh_port_here
  ssh_user: 'your_ssh_username_here'
  ssh_pass: 'your_ssh_password_here'
  sql_hostname: 'your_sql_hostname_here'
  sql_port: your_sql_port_here
  sql_username: 'your_sql_username_here'
  sql_password: 'your_sql_password_here'
  sql_main_database: 'your_sql_main_database_here'

Шаг 2: Установка зависимостей

Перед запуском проекта убедитесь, что у вас установлен Python версии 3.8 или выше. Затем установите все необходимые зависимости, используя следующую команду в корневой директории проекта:

pip install -r requirements.txt

Либо установите и активируйте окружение Conda

conda env create --name marzban-streamlit --file=conda_env_streamlit.yml

Шаг 3: Запуск проекта

Если вы создали окружение Conda, то сначала активируйте его

conda activate marzban-streamlit

После того как вы установили все необходимые зависимости, вы можете запустить проект с помощью следующей команды в корневой директории проекта:

streamlit run main.py

Автоматически откроется страница браузера с адресом http://localhost:8501/

Если необходимо сменить порт:

streamlit run main.py --server.port 8503

marzban_mysql_streamlit's People

Contributors

lifeindarkside avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

newmepad

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.