Some examples using different packages: Flask and Django.
- Python >= 3.6
pip install -r requirements.txt
Execute the application using Flask
cd flask_app
python app.py
Expected output: The application is running on port 5000
* Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Before execute the application, it's necessary to update the migrations
cd django_app
python manage.py migrate
Create an Admin user
python manage.py createsuperuser
Execute the application using Django
python manage.py runserver
Expected output: The application is running on port 8000
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
March 15, 2021 - 02:43:54
Django version 3.1.7, using settings 'django_app.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
cd scripts
python calculator.py