• Stars
    star
    446
  • Rank 97,888 (Top 2 %)
  • Language Jinja
  • License
    MIT License
  • Created over 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ“˜ ๐Ÿ“ฆ Structure your Flask apps in a scalable and intelligent way using Blueprints.

Flask Blueprint Tutorial

Python Flask Flask-Assets GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Flask Blueprint Tutorial

Structure your Flask apps in a scalable and intelligent way using Blueprints.

Getting Started

Get set up locally in two steps:

Environment Variables

Replace the values in .env.example with your values and rename this file to .env:

  • FLASK_APP: Entry point of your application; should be wsgi.py.
  • FLASK_ENV: The environment in which to run your application; either development or production.
  • SECRET_KEY: Randomly generated string of characters used to encrypt your app's data.
  • LESS_BIN (optional for static assets): Path to your local LESS installation via which lessc.
  • ASSETS_DEBUG (optional): Debug asset creation and bundling in development.
  • LESS_RUN_IN_DEBUG (optional): Debug LESS while in development.
  • COMPRESSOR_DEBUG (optional): Debug asset compression while in development.

Remember never to commit secrets saved in .env files to Github.

Installation

Get up and running with make deploy:

git clone https://github.com/hackersandslackers/flask-blueprint-tutorial.git
cd flask-blueprint-tutorial
make deploy

Hackers and Slackers tutorials are free of charge. If you found this tutorial helpful, a small donation would be greatly appreciated to keep us in business. All proceeds go towards coffee, and all coffee goes towards more content.

More Repositories

1

flask-sqlalchemy-tutorial

๐Ÿ โ„น๏ธ Create and manage data in your Flask app via a SQL database.
Python
389
star
2

flask-wtform-tutorial

๐Ÿ“๐Ÿ˜Ž Tutorial to implement forms in your Flask app.
Jinja
135
star
3

flask-session-tutorial

๐Ÿ’พ ๐Ÿ™‡ Example Flask project for implementing Flask-Session with Redis.
Python
93
star
4

sqlalchemy-tutorial

๐Ÿงช๐Ÿ”ฌ Use SQLAlchemy to connect, query, and interact with relational databases.
Python
71
star
5

flask-jinja-tutorial

โ›ฉ๏ธ Serve dynamic web pages in Flask by mastering Flask's built-in templating engine.
Makefile
52
star
6

beautifulsoup-tutorial

โœจ ๐Ÿœ Scrape webpage metadata using BeautifulSoup.
Python
45
star
7

python-poetry-tutorial

๐Ÿ โœ๏ธ Simple Python project built with Poetry.
Python
42
star
8

pandas-sqlalchemy-tutorial

๐Ÿผ ๐Ÿ’ป Load or insert data into a SQL database using Pandas DataFrames.
Python
29
star
9

redis-python-tutorial

๐Ÿ…พ๏ธ ๐Ÿ’ญ Leverage in-memory data storage to make your Python apps snappy.
Python
23
star
10

googlecloud-storage-tutorial

๐Ÿ’พ โ˜๏ธ Tutorial for interacting with Google Cloud Storage via the Python SDK.
Python
23
star
11

psycopg2-tutorial

๐Ÿ˜ ๐Ÿ’พ Tutorial for connecting to a Postgres database in Python.
Python
20
star
12

django-views-tutorial

๐Ÿš€ โœ… Function and class-based Django view repository.
JavaScript
19
star
13

bigquery-sqlalchemy-tutorial

๐Ÿ“Š โžก๏ธ ๐Ÿ’พ ETL script to migrate data from BigQuery to SQL.
Python
17
star
14

aiohttp-aiofiles-tutorial

๐Ÿ”„ ๐ŸŒ Handle thousands of HTTP requests, disk writes, and other I/O-bound tasks simultaneously with Python's quintessential async libraries.
HTML
15
star
15

django-intro-tutorial

๐Ÿš€โœ… Get started with Django by building your first web app.
JavaScript
12
star
16

flask-assets-tutorial

๐Ÿ“ฏ ๐Ÿ“„ Serve compiled frontend assets in Flask with `Flask-Assets`.
Python
12
star
17

jsonld-scraper-tutorial

๐ŸŒŽ ๐Ÿ–ฅ Supercharge your scraper to extract quality page metadata by parsing JSON-LD data via Python's extruct library.
Python
12
star
18

hackersandslackers-theme

๐Ÿ‘ป ๐Ÿ“ โœจ Clean Ghost theme with advanced features & customization.
SCSS
11
star
19

bigquery-python-tutorial

๐Ÿ“Š ๐Ÿ Create tables in Google BigQuery, auto-generate their schemas, and retrieve said schemas.
Python
9
star
20

hackers

Fully-featured & user-friendly Ghost Theme.
CSS
6
star
21

asyncio-tutorial-part1

๐Ÿ๐Ÿ” Intro to concurrency in Python with Asyncio.
Python
5
star
22

asyncio-tutorial-part2

Intro to concurrency in Python with Asyncio.
Python
4
star
23

plotly-chartstudio-tutorial

๐Ÿ“ˆ ๐Ÿ“Š Create Cloud-hosted Charts with Plotly Chart Studio.
Python
4
star
24

gcloud-image-transformer

๐Ÿ–ผ๐Ÿ”จ Optimize images hosted on Google Cloud Storage.
Python
4
star
25

golang-helloworld

๐Ÿน ๐Ÿ’ฌ Create your first "Hello world" app written in Golang.
Go
4
star
26

netlify-functions-tutorial

๐ŸŸฉ ๐Ÿน Write and deploy Golang Lambda Functions to your GatsbyJS site on Netlify.
JavaScript
2
star
27

java-mysql-tutorial

Java
1
star
28

hackersandslackers

Hackers and Slackers
1
star
29

ghost-sql-sanitation

๐Ÿ‘ป ๐Ÿ–ฒ Sanitize Ghost Blog SQL data on a schedule to ensure content quality.
Python
1
star