DuerOS skill deploy support.
For full request documentation please visit DuerOS doc
python3, pip
- requests
- flask
- gunicorn
- rsa
- sqlite3
- Flask_SQLAlchemy
- Flask_PyMongo
- mysql-connector-python-rf
├── README.md
├── app
│ ├── __init__.py
│ ├── tools
│ │ └── record.py
│ └── utils.py (handle requests)
├── config.py
├── database.db
├── defaults
│ └── settings.cfg (default config)
├── dueros.py
├── models
│ └── mysql
│ ├── activity.py (log activity)
│ └── init.py (init database)
├── requirements.txt
├── settings.cfg (copy from defaults/settings.cfg and edit with your config)
└── setup.py
git clone https://github.com/fredliang44/DuerOS-Python-Server.git
pip3 install -r requirements.txt
export FLASK_APP=$(pwd)/DuerOS-Python-Server/dueros.py
git clone https://github.com/fredliang44/DuerOS-Python-Server.git
python3 setup.py install
export FLASK_APP=$(pwd)/DuerOS-Python-Server/dueros.py
Please edit and uncomment your config indefaults/settings.cfg
Then move the file to root dir (inside dir DuerOS-Python-Server
)
Support mongodb(recommend), sqlite, mysql as backend database(still testing)
If you are using sql database, please init before using new database.
flask init
flask run
For more information: DuerOS certs doc
flask gen_certs
gunicorn -w 4 -b 0.0.0.0:8000 dueros:app
log path log/
flask deploy