Services are functions dedicated to the specific functionality. Currently, there are 2 services:
- Email service (sending emails using your email address and server)
- Payment (all logic related to the payment)
How to add your own service
It's very easy:
- Create a folder under /src/shared/services.
- Create a python file service.py inside the folder.
- If you need the service to be initialized during starting the application, create the following function inside the service.py:
# your init code
This init_app function will be called automatically, during the primary initialization of application.