Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/YaoApp/demo-widget

YAO Widget DEMO
https://github.com/YaoApp/demo-widget

Last synced: 5 days ago
JSON representation

YAO Widget DEMO

Awesome Lists containing this project

README

        

# YAO Widget DEMO

![Image](docs/images/intro.png)

[中文介绍](README.zh-CN.md)

YAO Widget DEMO

Documentation: [https://yaoapps.com/en-US/doc](https://yaoapps.com/en-US/doc/Introduction/Getting%20Started)

## USAGE

### Docker

```bash
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

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

```

#### Set the environment variables

```bash
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

```bash
cd /app/path/widget

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

```

#### Start the service

```bash
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: `[email protected]`
Password: `A123456p+`