All Projects → hackersandslackers → Flask Session Tutorial

hackersandslackers / Flask Session Tutorial

Licence: mit
💾 🙇 Example Flask project for implementing Flask-Session with Redis.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flask Session Tutorial

Flask Sqlalchemy Tutorial
🐍 ℹ️ Create and manage data in your Flask app via a SQL database.
Stars: ✭ 162 (+134.78%)
Mutual labels:  flask, tutorial, tutorials
Nice Front End Tutorial
🌍 Constantly updated front-end resources, tutorials, opinions(与时俱进版前端资源,教程和意见。)
Stars: ✭ 755 (+994.2%)
Mutual labels:  redis, tutorial
Python Tutorial
A Python 3 programming tutorial for beginners.
Stars: ✭ 647 (+837.68%)
Mutual labels:  tutorial, tutorials
Bibi
An e-commerce fullstack solution for Flask 出口电商全栈解决方案
Stars: ✭ 914 (+1224.64%)
Mutual labels:  redis, flask
Chatty
A WhatsApp clone with React Native and Apollo (Tutorial)
Stars: ✭ 481 (+597.1%)
Mutual labels:  tutorial, tutorials
Rxjava2 Android Samples
RxJava 2 Android Examples - Migration From RxJava 1 to RxJava 2 - How to use RxJava 2 in Android
Stars: ✭ 4,950 (+7073.91%)
Mutual labels:  tutorial, tutorials
Awesome Android Things
A curated list of awesome android things tutorials, libraries and much more at one place
Stars: ✭ 883 (+1179.71%)
Mutual labels:  tutorial, tutorials
Tutorial
Java全栈知识架构体系总结
Stars: ✭ 407 (+489.86%)
Mutual labels:  redis, tutorial
Opencv Tutorials
Tutorials for learning OpenCV in Python from Scratch
Stars: ✭ 36 (-47.83%)
Mutual labels:  tutorial, tutorials
Tortilla
The Framework for tutorials
Stars: ✭ 43 (-37.68%)
Mutual labels:  tutorial, tutorials
Python Beginner Programming Exercises
Practice your Python programming skills with this interactive and auto-graded set of exercises.
Stars: ✭ 47 (-31.88%)
Mutual labels:  tutorial, tutorials
Invenio
Invenio digital library framework
Stars: ✭ 469 (+579.71%)
Mutual labels:  redis, flask
Reverse Engineering Tutorials
Reverse Engineering Tutorials
Stars: ✭ 438 (+534.78%)
Mutual labels:  tutorial, tutorials
Lc3 Vm
Write your own virtual machine for the LC-3 computer!
Stars: ✭ 631 (+814.49%)
Mutual labels:  tutorial, tutorials
Hands On Nltk Tutorial
The hands-on NLTK tutorial for NLP in Python
Stars: ✭ 419 (+507.25%)
Mutual labels:  tutorial, tutorials
Haxejs
Documentation about using JavaScript with Haxe
Stars: ✭ 25 (-63.77%)
Mutual labels:  tutorial, tutorials
Eve Building Restful Mongodb Backed Apis Course
Course materials and handouts for EVE: Building RESTful MongoDB-backed APIs course
Stars: ✭ 53 (-23.19%)
Mutual labels:  flask, tutorial
Please Contain Yourself
A Docker tutorial written for people who don't actually know Docker already.
Stars: ✭ 385 (+457.97%)
Mutual labels:  tutorial, tutorials
Enferno
A Python framework based on Flask microframework, with batteries included, and best practices in mind.
Stars: ✭ 385 (+457.97%)
Mutual labels:  redis, flask
Introductiontovulkan
Source code examples for "API without Secrets: Introduction to Vulkan" tutorial
Stars: ✭ 972 (+1308.7%)
Mutual labels:  tutorial, tutorials

Flask-Session Tutorial

Python Flask Flask-Login Flask-Assets Flask-Session Flask-SQLAlchemy WTForms PyMySQL Redis GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks

Flask Session Redis Tutorial

Tutorial: https://hackersandslackers.com/managing-user-session-variables-with-flask-sessions-and-redis/

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.
  • SQLALCHEMY_DATABASE_URI: Connection URI of a SQL database.
  • SESSION_REDIS: Connection URI of a Redis instance.
  • 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-session-tutorial.git
$ cd flask-session-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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].