Skip to content

berryny/python-flask-boilerplate

Repository files navigation

Welcome to Python Flask Boilerplate

What is Python?

Python is an interpreted, high-level and general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant whitespace. Its language constructs and object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

Python was created in the late 1980s, and first released in 1991, by Guido van Rossum as a successor to the ABC programming language. Python 2.0, released in 2000, introduced new features, such as list comprehensions, and a garbage collection system with reference counting, and was discontinued with version 2.7 in 2020. Python 3.0, released in 2008, was a major revision of the language that is not completely backward-compatible and much Python 2 code does not run unmodified on Python 3.

source

Python HTML Template

Jinja Template Designer Documentation "is a modern and designer-friendly templating language for Python, modelled after Django's templates."

What is Flask?

Flask is a microframework for Python based on Werkzeug and Jinja2.

Third-party Libraries

  • Bootstrap "is a free and open-source CSS framework directed at responsive, mobile-first front-end web development."
  • Font Awesome "is a font and icon toolkit based on CSS and Less."

Environment Setup Installation

Software Installation

Quick Start

  • Clone the repo:
    git clone https://github.com/<username>/python-flask-boilerplate.git
    cd python-flask-boilerplate
    
  • Install Virtual Environment:
py -m venv venv/
  • For Mac users
source venv/bin/activate
  • For Windows users
venv\Scripts\activate.bat
  • For Powershell
venv\Scripts\activate.ps1
  • Install the dependencies:
pip install -r requirements.txt
  • Run the development server:
py app.py

Git

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Github

GitHub, Inc. is a subsidiary of Microsoft which provides hosting for software development and version control using Git. It offers the distributed version control and source code management functionality of Git, plus its own features.

GitHub Setup

  • …or create a new repository on the command line
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/berryny/open_data_python_mta.git
git push -u origin main
  • push to repository from the command line
git add .
git commit -m "commit message"
git push -u origin main

Create a README.md

Basic writing and formatting syntax

Create sophisticated formatting for your prose and code on GitHub with simple syntax. Learn more

README Technical Writer Guide

Tools for Technical Writers - A GitHub repository containing lists of suggested tools for technical writers.

Stay in Touch

LinkedIn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages