Skip to content

YaoApp/demo-widget

Repository files navigation

YAO Widget DEMO

Image

中文介绍

YAO Widget DEMO

Documentation: https://yaoapps.com/en-US/doc

USAGE

Docker

docker run -d -p 5099:5099 --restart unless-stopped \
    -e YAO_INIT=reset \
    -e YAO_PROCESS_RESET=flows.setmenu \
    yaoapp/demo-widget:1.0.0-amd64

Yao

Download source code

git clone https://github.com/YaoApp/demo-widget /app/path/widget

Set the environment variables

mkdir /app/path/widget/db
mkdir /app/path/widget/data
mkdir /app/path/widget/logs

cat << EOF
YAO_ENV=development # development | production
YAO_ROOT="/app/path/widget"
YAO_HOST="0.0.0.0"
YAO_PORT="5099"
YAO_SESSION="memory"
YAO_LOG="/app/path/widget/logs/application.log"
YAO_LOG_MODE="TEXT"  #  TEXT | JSON
YAO_JWT_SECRET="bLp@bi!oqo-2U+hoTRUG"
YAO_DB_DRIVER=sqlite3 # sqlite3 | mysql
YAO_DB_PRIMARY="/app/path/widget/db/yao.db"
EOF > /app/path/widget/.env

Initialization

cd /app/path/widget

# Create tables & set menu
yao migrate --reset
yao run flows.setmenu

Start the service

cd /app/path/widget
yao start

ADMIN

Open the browser to visit the URL:

http://127.0.0.1:5099/xiang/login/admin

User Name: xiang@iqka.com Password: A123456p+

Releases

No releases published

Packages

No packages published