The aim of this project is an hub for multiple Actions on Google
- ilifev7s-rest-remote Rest remote for Chuwi iLife v7s
PIPENV_VENV_IN_PROJECT=1 pipenv install --dev
Take a look to config.py
ENVIRONMENT
takes the value from FLASK_ENVSSL_CONTEXT_CERT
andSSL_CONTEXT_KEY
are used only ifENVIRONMENT
is not 'development' (you can use letsencrypt to generate them)BASIC_AUTH_USERNAME
andBASIC_AUTH_PASSWORD
are optional but recommended to enable basic authSENTRY_DSN
is optional and it is the Sentry API key
Run the app (FLASK_ENV
is optional and it defaults to 'production'):
PYTHONPATH=".:actions_on_google" FLASK_ENV=development pipenv run python actions_on_google/app.py
To renew a certificate the project must be served on port 80 and with basic-auth disabled. Use the command:
certbot renew --webroot -w $PROJECT_PATH/actions-on-google/actions_on_google/static/
I will improve it when I have more time
- Actions on Google example The code from GDG Pisa that I used to start my project