Base Flask screenshot

Base Flask

Author Avatar Theme by Albertyw
Updated: 10 Jan 2026
9 Stars

Base Flask/uWSGI/nginx setup

Categories

Overview

The base Flask setup is a skeleton for building simple web apps using Python. It is specifically designed for Python 3 and has minimal, up-to-date dependencies. The setup is well-documented with clear instructions for setup and usage procedures. Additionally, it includes setting up secure and fast nginx/gunicorn in production and has Docker support. The base Flask setup is commonly used for websites and is not recommended for pure JSON sites.

Features

  • Developed specifically for Python 3
  • Minimal but up-to-date python dependencies
  • 100% test coverage
  • No issues from Code Climate
  • PEP8 compliant
  • Documented setup and usage procedures
  • Includes setting up secure and fast nginx/gunicorn in production
  • Docker support

Installation

To install the base Flask setup for your project needs, follow these steps:

  1. Modify and run the baseflask/scaffold.sh script to create a copy of the base-flask for your project.
  2. Run the bin/setup.sh script to set up the host.

The base-flask setup is designed to work with a minimally sized AWS EC2 or DigitalOcean instance, running a modern version of Ubuntu (20.04 LTS recommended). Additionally, you can boost speed by adding a CDN like Cloudflare. For a good Cloudflare setup, use full SSL encryption and install an origin certificate for end-to-end encryption of requests.

Summary

The base Flask setup is a useful skeleton for building simple web apps using Python. It is specifically designed for Python 3 and has minimal, up-to-date dependencies. The setup is well-documented and includes instructions for setting up secure and fast nginx/gunicorn in production. It also has Docker support for easier deployment. However, it is not recommended for pure JSON sites and is better suited for websites. Overall, the base Flask setup provides a solid foundation for Python web app development.