Giter Site home page Giter Site logo

flask-saasify's Introduction

Flask-SaaSify

Provides a simple way to create a SaaS application with Python and Flask. It includes the most common features of a SaaS company, such as sign-up, login, payments, and more.

Features

  • Single, fully documented .env config
  • Bootstrap 5 and Bootstrap Icons
  • SEO and meta tags
  • Server Side Analytics
    • Response times
  • Sign-up and login
    • Magic links
  • Progressive Web App
  • Subscriptions
  • Email
    • SMTP
    • E-mail templates

Planned features

  • Admin panel
    • Manage users
    • View analytics
  • Sign-up and login
    • Social login (Google, Facebook, X, GitHub)
  • Payments
    • Stripe Checkout API
    • Webhooks to update subscription status
  • Landing pages
    • Landing page
    • Waitlist
    • Affiliate program page

Tech stack

  • Docker
  • Python
  • Flask/SQLAlchemy
  • SQLite

Example

In your .env file:

# Flask
SECRET_KEY=
EXTERNAL_BASE_URL=http://127.0.0.1:5000
[email protected]

# Database locations
DATABASE_URI=sqlite:///database.sqlite

# Default meta title for pages; keep concise for clarity and SEO
META_DEFAULT_TITLE=

# Meta description: Aim for 155-160 characters to provide a concise summary of the page's content
META_DEFAULT_DESCRIPTION=

# Meta keywords: List a few relevant keywords. Note: Most search engines ignore this tag due to past overuse
META_DEFAULT_KEYWORDS=

# Open Graph (Facebook) default type (e.g., website, article); specifies the type of content
META_OG_DEFAULT_TYPE=

# OG title: Aim for 60-90 characters to ensure it displays well on social platforms
META_OG_DEFAULT_TITLE=

# OG description: Keep under 200 characters for optimal display on social media
META_OG_DEFAULT_DESCRIPTION=

# OG image: Use high-quality images, at least 1200 x 630 pixels for best display on high-resolution devices
META_OG_DEFAULT_IMAGE=

# Twitter card type (e.g., summary, summary_large_image); defines the style of card displayed
META_TWITTER_DEFAULT_CARD=

# Twitter title: Keep concise, similar to OG title, for clarity and impact
META_TWITTER_DEFAULT_TITLE=

# Twitter description: Aim for less than 200 characters, focusing on engaging and concise summary
META_TWITTER_DEFAULT_DESCRIPTION=

# Twitter image: Optimal resolution is similar to OG image, with a minimum of 600 x 335 pixels for best display
META_TWITTER_DEFAULT_IMAGE=
from flask import Flask
from flask_saasify import Saasify, login_required

app = Flask(__name__)
saasify = Saasify(app)

@app.route('/public')
def index():
    return 'Hello, World!'

@app.route('/private')
@login_required
def protected():
    return 'You are logged in!'

if __name__ == '__main__':
    app.run()

License

AGPL-3.0, need a different license? Please e-mail me.

Publish to PyPi

python3 setup.py sdist bdist_wheel
twine upload dist/*

flask-saasify's People

Contributors

koenvaneijk avatar

Stargazers

Ceyhun Kapucu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.