Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/YaoApp/demo-widget
- Owner: YaoApp
- License: apache-2.0
- Created: 2022-08-05T11:56:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-03T14:32:24.000Z (about 2 years ago)
- Last Synced: 2024-11-06T05:12:36.426Z (6 days ago)
- Language: JavaScript
- Homepage: https://yaoapps.com
- Size: 284 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/logscat << 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+`