https://code.daypilot.org/67423/angular-scheduler-tutorial-typescript
- Setup flask and peewee for python(>=3.5)
- Install requirements.txt
- Run
python ./angular-scheduler-python-backend/app.py
_db.php : /angular-scheduler-python-backend/database_utils/utils.py -> db_init()
backend_create.php : /angular-scheduler-python-backend/database_utils/utils.py -> create_events()
backend_resources.php : /angular-scheduler-python-backend/database_utils/utils.py -> get_backend_resources()
backend_events.php : /angular-scheduler-python-backend/database_utils/utils.py -> get_backend_events()
backend_move.php : /angular-scheduler-python-backend/database_utils/utils.py -> update_backend_move()
-
Create api name with .php in app.py
@app.route('/api/backend_create.php', methods=['POST'])
Note: Reason of using .php in api is we don't want to change frontend for python changes. This will directly setup with current frontend. -
Api call the database utils functions.