Skip to content

ProgramIsFun/EonGraph-Backend

Table of Contents

How to Run

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

Development cycle

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

How to Deploy

Deploy on Azure App Service for production.

1. Create App Service

  • Use the Azure Portal to create a free App Service for your web app.

2. Deploy from VS Code

Step Description
VS Code Deployment Right-click on your resource, select Deploy to Web App…

3. Add Environment Variables (e.g., for secrets)

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

dev logs

references

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published