Files
MSE-CyberSec-DevSecOps/src
2025-03-19 22:09:48 +01:00
..
2025-03-11 14:59:36 +01:00
2025-03-18 10:18:15 +01:00
2025-03-10 09:21:00 +01:00
2025-03-18 10:11:40 +01:00
2025-03-11 14:59:36 +01:00

CI/CD and SSDLC labs (TSM CyberSec)

This is a simple calculator application using Flask. The application is a simple calculator that can perform addition, subtraction, multiplication, and division.

Environment setup and usage

For the environment setup, the following steps are necessary:

  1. Install Python and PDM (package manager)
  2. Install the required packages with pdm install --> The pyproject.toml file contains the required packages
  3. Start the development server with pdm run flask

The started server can be reached on the localhost (127.0.0.1) on port 5000. This can be configured if desired.

Usage and routes of the demo app

The following table shows the different routes of the REST API:

route GET parameters function
/ n/a Welcome page
/login n/a Login page (only the username is used for the moment)
/help n/a Help page
/inc x increments the value x by 1
/add x, y executes x+y
/mul x, y executes x*y
/div x, y executes x/y

Examples

Here some usage examples