Set up your local environment to run the application.
| Step | Command | Description |
|---|---|---|
| 1 | Create and activate a virtual environment (e.g., via VS Code) | Isolate project dependencies |
| 2 | pip install -r requirements.txt |
Install dependencies |
| 3 | set FLASK_APP=app.py set FLASK_ENV=development |
Set Flask environment variables |
| 4 | flask run --port=5007 |
Start the Flask development server |
For easier development
| Step | Command | Description |
|---|---|---|
| 1 | pip install nbconvert |
Install nbconvert utility |
| 2 | You Edit .ipynb (Jupyter notebook) files, if any |
|
| 3 | jupyter nbconvert example.ipynb --to python |
Convert notebook to Python script |
Deploy on Azure App Service for production.
- Use the Azure Portal to create a free App Service for your web app.
| Step | Description |
|---|---|
| VS Code Deployment | Right-click on your resource, select Deploy to Web App… |
| Step | Command | Description |
|---|---|---|
| 1 | az config set core.enable_broker_on_windows=false |
Configure Azure CLI for Windows |
| 2 | az login |
Authenticate with Azure |
| 3 | az webapp config appsettings set --name <AppServiceName> --resource-group <ResourceGroupName> --settings MY_VARIABLE=MyValue |
Set env vars for your App Service |
Reference: Azure Flask Quickstart
- This branch is coming from https://github.com/ProgramIsFun/graphPythonBackend11/tree/master. I basically take one folder of that branch and then make it azure compatible in this branch
- 14/8/25 https://github.com/ProgramIsFun/EonGraph-Backend/commit/37f857deae2675eb9153f7b508015466da0b752a Changed the old library to normal flask