Merge branch 'main' of https://github.com/Rripped/TelegramAktienBot
This commit is contained in:
commit
0b6c335e0a
@ -17,10 +17,3 @@ WebEngineering2 Projekt: Aktien und News Bot für Telegram
|
|||||||
## Dokumentation
|
## Dokumentation
|
||||||
- Postman-API -> docs/postman.json
|
- Postman-API -> docs/postman.json
|
||||||
- Datenbank -> database/*
|
- Datenbank -> database/*
|
||||||
|
|
||||||
## Local setup for telegram bot
|
|
||||||
0. optional: build virtual env by ``python -m venv venv``
|
|
||||||
``env/Scripts/activate``
|
|
||||||
2. create .env and set API keys etc. (use .env.example as a layout)
|
|
||||||
3. install required libs via ``pip install -r ./telegram_bot/requirements.txt``
|
|
||||||
4. run bot.py via ``python ./telegram_bot/bot.py``
|
|
||||||
|
@ -18,7 +18,11 @@ def create_app():
|
|||||||
application = APIFlask(__name__, docs_path='/api/docs')
|
application = APIFlask(__name__, docs_path='/api/docs')
|
||||||
application.config.from_object("config.ConfigClass")
|
application.config.from_object("config.ConfigClass")
|
||||||
|
|
||||||
CORS(application)
|
CORS(application, resource={
|
||||||
|
r"/*": {
|
||||||
|
"origins": "*"
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
application.app_context().push()
|
application.app_context().push()
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ class ConfigClass(object):
|
|||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False # Avoids SQLAlchemy warning
|
SQLALCHEMY_TRACK_MODIFICATIONS = False # Avoids SQLAlchemy warning
|
||||||
|
|
||||||
# openapi/Swagger config
|
# openapi/Swagger config
|
||||||
SPEC_FORMAT = 'yaml'
|
LOCAL_SPEC_PATH = 'docs/openapi.json'
|
||||||
SERVERS = [
|
SERVERS = [
|
||||||
{
|
{
|
||||||
"name": "Production",
|
"name": "Production",
|
||||||
|
6
telegram_bot/README.md
Normal file
6
telegram_bot/README.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
## Local setup for telegram bot
|
||||||
|
0. optional: build virtual env by ``python -m venv venv``
|
||||||
|
``env/Scripts/activate``
|
||||||
|
2. create .env and set API keys etc. (use .env.example as a layout)
|
||||||
|
3. install required libs via ``pip install -r ./telegram_bot/requirements.txt``
|
||||||
|
4. run bot.py via ``python ./telegram_bot/bot.py``
|
Loading…
Reference in New Issue
Block a user