whoMentionStock
Installation Steps:
docker-compose.yml
(or override it)
change your - change the root password and user password of mysql
create instance/config.py
- instance config is FLASK stuff
- mkdir
instance
in app folder - you should copy the
config.py
from root - change the sql password, twitter token and telegram bot token in the new config.py
ARK daily email config
- input your gmail address and gmail password which has subscribe ARK daily trading info in
intance/config.py
- the gmail account must be in Less secure apps is ON and IMAP function is ON (change it by gmail setting)
- Encounter error: Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
- Please go to https://accounts.google.com/DisplayUnlockCaptcha
start your engine!
docker-compose -f docker-compose.xml up
Try to access ADMINER
- installed adminer for manage the program
- ip:8080 to access your db by ADMINER
- the server (host) name is
mysql
as default (set in docker-compose.yml)
Visual Code debug
- run the docker using
docker-compose -f docker-compose.yml -f docker-compose.debug.yml
- add
import debugpy
andbreakpoint()
in your python code which needed to stopped by breakpoint
{
"configurations": [
{
"name": "Python: Remote Attach",
"type": "python",
"request": "attach",
"port": 5678,
"host": "localhost",
"pathMappings": [
{
"localRoot": "${workspaceFolder}/app",
"remoteRoot": "/app"
}
]
}
}
- Add above debug config (launch.json) in VS code
- Connect the debugger