
A Flask application that demonstrates how to build data-driven Python apps in Azure App Service.
Building web applications can often be a complex process, especially when integrating different components like databases and ensuring smooth deployment. The Flask on Docker setup with an external PostgreSQL database offers a straightforward solution for developers wanting to leverage the efficiency of Docker while utilizing the power of Flask and PostgreSQL. This setup allows for easy management of the application components and simplifies the deployment process.
With two available versions, each providing distinct features, this project caters to both initial developers and those looking to implement database migrations. Utilizing SQLAlchemy for database connections, it also emphasizes best practices through the inclusion of environment variables, making it applicable for various production scenarios.
Docker Compatibility: Easily runs the Flask application in a Docker container, simplifying setup and ensuring consistent environments across development and production.
PostgreSQL Integration: Connects seamlessly to an external PostgreSQL database, leveraging SQLAlchemy for smooth data handling and management.
Environment Variables: Uses environment variables (DBHOST, DBPASS, DBUSER, DBNAME) for configuration, enhancing security and making deployments easier across different environments.
Two Releases Available: Offers two versions, with the first showcasing a complete application and the second introducing model changes and database migration for improved functionality.
Default PostgreSQL Port: Always operates using the default PostgreSQL port, streamlining the setup process by removing the need for custom configurations.
Local Testing: Allows for local execution via Docker, making it simple to test and develop the application before pushing to production.
Open Source Contribution: Adopts the Microsoft Open Source Code of Conduct, welcoming contributions and collaboration from the community.
