Integrate multiple Bottle applications #80

Open
opened 2019-06-10 09:49:40 +00:00 by b3yond · 1 comment

Author: @b3yond Posted at: 12.01.2019 10:30

We want to rework our architecture. #79

For this, we need to support that the bots can have their frontend functions in their own webui.py. frontend.py will still be the parent bottle application and will keep the functions for user management etc.

According to the documentation, it should be possible to mount the bot Bottle applications to integrate them into the frontend: https://bottlepy.org/docs/dev/api.html#bottle.Bottle.mount

Let's find out how this works and what we need to consider.

The folder structure could become a problem; to make the website secure, it should not have write access to code which is executed by the backend or anything else. On the other hand we need to import templates from the bot directories. No solution for this yet.

Author: @b3yond Posted at: 12.01.2019 10:30 We want to rework our architecture. #79 For this, we need to support that the bots can have their frontend functions in their own webui.py. frontend.py will still be the parent bottle application and will keep the functions for user management etc. According to the documentation, it should be possible to mount the bot Bottle applications to integrate them into the frontend: https://bottlepy.org/docs/dev/api.html#bottle.Bottle.mount Let's find out how this works and what we need to consider. The folder structure could become a problem; to make the website secure, it should not have write access to code which is executed by the backend or anything else. On the other hand we need to import templates from the bot directories. No solution for this yet.
Poster
Owner

Author: @b3yond Posted at: 27.01.2019 22:16

The templates are already split up for the different bots: #85

Author: @b3yond Posted at: 27.01.2019 22:16 The templates are already split up for the different bots: #85
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: b3yond/ticketfrei#80
There is no content yet.