• Stars
    star
    219
  • Rank 180,086 (Top 4 %)
  • Language
    Python
  • Created over 5 years ago
  • Updated 4 months ago

Reviews

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

Repository Details

👨‍💻 🔑 Build Flask apps with user creation and log-in functionally.

Flask-Login Tutorial

Python Flask Flask-Login Flask-Assets Flask-WTF Flask-SQLAlchemy GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Flask Login

Add user authentication to your Flask app.

Getting Started

Get set up locally in two steps:

I. 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 to run your app in (either development or production).
  • SECRET_KEY: Randomly generated string of characters used to encrypt your app's data.
  • SQLALCHEMY_DATABASE_URI: Connection URI of a SQL database.
  • LESS_BIN: Path to your local LESS installation via which lessc (optional for static assets).
  • ASSETS_DEBUG: Debug asset creation and bundling in development (optional).
  • LESS_RUN_IN_DEBUG: Debug LESS while in development (optional).
  • COMPRESSOR_DEBUG: Debug asset compression while in development (optional).

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

II. Installation

Get up and running with make deploy:

git clone https://github.com/toddbirchard/flasklogin-tutorial.git
cd flasklogin-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

plotlydash-flask-tutorial

📊📉 Embed Plotly Dash into your Flask applications.
Less
483
star
2

ghosttheme-stockholm

👻 📝 ✨ Clean Ghost theme with advanced features & customization.
Less
67
star
3

jira-database-etl

🚹 💾 Script to import issues from a JIRA instance into a database.
Python
55
star
4

snapchat-memory-fetcher

👻🟡 Download all Snapchat video & photo memories from a data export.
Python
26
star
5

pythonmyadmin

🐍💾 Web GUI for connecting to modifying databases & data.
Python
19
star
6

gatsby-ghost-tokyo

👻 🗼 ✨ Minimalist Ghost theme emphasizing readability, load times, and customization.
JavaScript
18
star
7

tableau-extraction

📈➡️💾 A Flask application which extends Tableau to be used as an ETL tool.
Python
18
star
8

linkbox-api

🔗 📦 A single endpoint which generates metadata previews of any given URL.
Python
15
star
9

gatsby-ghost-stockholm

🟣 👻 Blog theme exceeding the limitations of Ghost CMS with dynamic features, user accounts, and extended data model.
Less
12
star
10

ghost-webhook-api

📑 🎛️ API to automate optimizations for self-hosted blogging platforms.
Python
11
star
11

planetjupyter

🔴 🌌 🔭 Beautify your Jupyter Notebooks.
HTML
9
star
12

ghosttheme-warsaw

👤 Theme suitable for displaying personal work.
CSS
4
star
13

lambda-metadata-scraper

🟩 🌐 Netlify Lambda function to scrape metadata from a target URL.
Go
4
star
14

couldweallbe.pizza

🍕 💭 Music portfolio Gatsby theme.
JavaScript
4
star
15

ghost-to-medium

Python
3
star
16

shibabot

🐕 👾 Chatbot for Discord
Python
3
star
17

bigquery-to-sql

📊 ➡️ 💾 Lightweight ETL script to migrate data from BigQuery to SQL.
Python
3
star
18

boto3-CDNcleanup

🐳 🚮 Script to optimize images on DigitalOcean Spaces.
Python
2
star
19

confluence-wikipy

🎭 Python 3 CLI for interacting with Confluence API.
Python
2
star
20

ghost-blog-automation

👻 🤖 Ghost blog automations to sanitize content, schedule backups, and more.
Python
2
star
21

jira-importendpoint

🚹 💾 Imports issues from JIRA instance to database.
Python
2
star
22

onelogin-getallusers

❎ Script to export all users from a Onelogin instance
Python
1
star
23

account-creation-endpoint

📦 User account creation as a service. Handles Auth, mailing lists, analytics, and more.
Python
1
star
24

pandas-autoschema

Python
1
star
25

gatsby-starter-default

CSS
1
star
26

twitch-birdteam

🎮 🖥 Twitch API wrapper to serve as chatbot, event handler, & webhooks.
Python
1
star
27

hackersandslackers-api-old

🔌 Standalone API to handle account creation, auto-publish to medium, and sitewide link embeds.
Python
1
star
28

tumblr-roblog

🤖 📝 A Tumblr theme optimized for automation
HTML
1
star
29

antisocialsquad

🌐 Web app to serve static comic content
HTML
1
star
30

mixpanel-delete-profiles

🔵 🔵 🔵 Avoid Mixpanel overage charges by identifying and deleting incomplete user profiles.
Python
1
star
31

linkbox-marketingsite

📦 📢 Static site to promote Linkbox API.
Python
1
star
32

chatango-async

🔁🤖 Asynchronous Chatango Client Library
Python
1
star
33

ghost-member-session

👻 🟩 Verifies whether the current user is a Ghost member and returns general account information upon success.
Go
1
star
34

hackers-graphql-server

🔺📡📈 Typescript GraphQL Server powered by Prisma
TypeScript
1
star