aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
  • Tools
  • About

Posts by tag

Flask

9 posts
View Post
  • 2 min
  • Engineering
  • Software Engineering

How-To: Deploy Python Flask applications using NGINX and uWSGI – Configuration (Part 2 of 3)

After the installation of the requirement software, next is the configuration part. An application should have its own NGINX and uWSGI configuration. It’s not necessary to do this for NGINX but it is recommended. The reason is simple, for easier management. When you have multiple applications being managed, updating smaller settings is easier , less disruptive and safer to do. uWSGI Configuration A configuration is made for each application. For example if you have an multiple API and Web (e.g. Django) projects, each should have its own configuration file. 01. Create the uWSGI configuration in /etc/uwsgi/apps-available/. $ sudo nano /etc/uwsgi/apps-available/geek_flask_app.ini…
View Post
Share
View Post
  • 3 min
  • Engineering
  • Software Engineering

How-To: Deploy Python Flask applications using NGINX and uWSGI – Installation (Part 1 of 3)

Completed your Python Flask application? In this series we will be deploying the application on a Ubuntu 22.04 machine. Which you can provision from different Cloud Service Providers like Google Cloud, Microsoft Azure, Amazon Web Service or Digital Ocean. To create a simple Web/Flask Python application and deploy it on an NGINX server with uWSGI and uWSGI Emperor. This is a 3-part guide. This part covers the Installation of the required packages. It will install the following It will also cover creation of Prerequisites Verification 01. Verify that Python and Pip3 has been installed $ python -V # or $…
View Post
Share
View Post
  • 2 min
  • Programming

How To Use Flask Project As A Python API Application

Overview This guide shows how to use the Flask Project as a Python API application. But it can also be used as Web App which is covered in a different tutorial. It shows how to perform GET and POST operations. The code contains a preview setup, it can be further enhanced to call a database or external service.   Prerequisites Python, Virtual Environment, Pip and Flask has been installed. Refer to this guide on how to install the requirements.   Application Structure geek_flask_api ├── api │   ├── __init__.py │   └── res │       ├── __init__.py │…
View Post
Share
View Post
  • 1 min
  • Programming

How To Install Flask

Overview This guide shows how to install and run a basic Flask application. Flask is a Python framework that can be used to create Web and API application.   Prerequisites Python has been installed Installation on Ubuntu Installation on Windows Optional but recommended. Setup a VirtualEnvironment and Pip has been installed. VirtualEnvironment for Ubuntu   Installation 01. Activate your virtual environment, or skip this step if not using virtual environment.   02. Install the Flask package   03. Verify the Flask has been installed by creating a sample application   Set the content as follows   04. Run the application…
View Post
Share
View Post
  • 2 min
  • Programming

How To Create A Simple Python Web App Using NGINX, uWSGI, And Flask – Part 03 of 03

Overview This is the 2nd part of the 3-part guide on Installing, Configuring and Deploying a Python Web/Flask application on an Ubuntu system that uses NGINX and uWSGI. For the installation part go here. For the configuration part go here.   Prerequisites Ubuntu 18.04 Python 3.x has been installed. For instructions see here. Pip and Virtual Environment has been installed. For instructions see here. Installed NGINX, uWSGI, and uWSGI-Emperor from previous guides. Configured NGINX, uWSGI and uWSGI-Emperor from previous guides.   Deploy a Flask App/API using uWSGI and NGINX Note: For this demo, we used the sample flask app and…
View Post
Share
View Post
  • 2 min
  • Programming

How To Create A Simple Python Web App Using NGINX, uWSGI, And Flask – Part 02 of 03

Overview This is the 2nd part of the 3-part guide on installing, configuring and deploying a Python Web/Flask application on an Ubuntu system that uses NGINX and uWSGI. For the installation part go here. If you’ve finished Installation and Configuration you can go here to deploy the app. Prerequisites Ubuntu 18.04 Python 3.x has been installed. For instructions see here. Pip and Virtual Environment has been installed. For instructions see here. Installed NGINX, uWSGI, and uWSGI-Emperor   uWSGI Configuration 01. Create the uWSGI configuration in /etc/uwsgi/apps-available/.   Set the content as follows   02. Create a symlink in /var/uwsgi-emperor/vassals/.   03.…
View Post
Share
View Post
  • 2 min
  • Programming

How To Create A Simple Python Web App Using NGINX, uWSGI, And Flask – Part 01 of 03

Overview This tutorial will guide you in creating a simple Web/Flask Python application and deploy it on an NGINX server with uWSGI and uWSGI Emperor. This part 1 covers the installation of the required packages. It will install the following: NGINX uWSGI uWSGI-Emperor Flask It will also cover creation of Virtual Environment Installation of python packages via the requirements.txt   Prerequisites Ubuntu 18.04 Python 3.x has been installed. For instructions see here. Pip and Virtual Environment has been installed. For instructions see here.   Verification 01. Verify that Python and Pip3 has been installed   Setup the Python Virtual Environment 01.…
View Post
Share
View Post
  • 1 min
  • DevOps
  • Programming

How To: Create A Flask / API Project In Windows

Prerequisites Operating System: Windows 7 and above Python 3.7 or greater installed Python Pip is installed Python Virtual Environment is installed (Optional)   Structure Overview   Steps 01. Create the necessary directories and files.   02. Update the necessary Python library/packages by setting the value of the geek_flask_api\requirements.txt   03. (Optional but recommended). Create a virtual environment dedicated to the Flask/API project. For instructions on how to install and configure virtual environment. Check this post. The directory structure should look something like below   04. Activate the Virtual Environment. Notice that the command prompt has changed to include virtual environment…
View Post
Share
View Post
  • 2 min
  • DevOps
  • Programming

How To: Create A Flask/API Project In Ubuntu

Prerequisites Operating System: Ubuntu 16 or Ubuntu 18 Python 3.X is installed Python Pip is installed Python Virtual Environment is installed (Optional)   Structure Overview Replace the dotlah_flask_api directory with the project name of your choice. Steps 01. Create the necessary directories and files. You can use the following shell script to create it, or manually enter them in the terminal, or create them from another way.     02.  Run the setup script.   While it is totally safe to create a Project with spaces, it is more of a standard in this case.   03. Navigate to the…
View Post
Share

Stay Connected!
LATEST
  • 1
    Microsoft Offers Azure ML Data Import CLI, SDK For Snowflake, Other Databases
    • June 8, 2023
  • 2
    Why Are Humans Afraid Of AI?
    • June 7, 2023
  • 3
    The Technical Architecture And Components Of A.I. Systems
    • June 7, 2023
  • 4
    Nature Already Inspired A.I. Than Most Realise
    • June 7, 2023
  • 5
    “A Field Guide To AI: For Business, Institutions, Society & Political Economy” — Your Essential Companion In Navigating the World of Artificial Intelligence.
    • June 7, 2023
  • 6
    Predictions: Top 25 Careers Likely In High Demand In The Future
    • June 6, 2023
  • 7
    A S.W.O.T. Analysis Of Current A.I. Systems
    • June 6, 2023
  • Apple-WWCD23-Vision-Pro-glass-230605 8
    Introducing Apple Vision Pro: Apple’s first spatial compute
    • June 5, 2023
  • 9
    Apple Unveils New Mac Studio And Brings Apple Silicon To Mac Pro
    • June 5, 2023
  • 10
    Apple Introduces M2 Ultra
    • June 5, 2023
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    tvOS 17 Brings FaceTime And Video Conferencing To The Biggest Screen In The Home
    • June 5, 2023
  • 2
    Apple Introduces The 15‑Inch MacBook Air
    • June 5, 2023
  • 3
    Huawei ICT Competition 2022-2023 Global Final Held In Shenzhen — 146 Teams From 36 Countries And Regions Win Awards
    • May 27, 2023
  • 4
    Building A Kubernetes Platform: How And Why To Apply Governance And Policy
    • June 4, 2023
  • 5
    Leave, This “United” “Kingdom”, This “Great” “Britain”
    • June 4, 2023
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.