Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumukh/ignite
A comprehensive Flask boilerplate to build SaaS applications that includes Stripe billing, emails, login, and OAuth.
https://github.com/sumukh/ignite
admin boilerplate boilerplate-template bootstrap flask foundation framework login python python3 scaffolding starter stripe template
Last synced: 4 days ago
JSON representation
A comprehensive Flask boilerplate to build SaaS applications that includes Stripe billing, emails, login, and OAuth.
- Host: GitHub
- URL: https://github.com/sumukh/ignite
- Owner: Sumukh
- License: other
- Created: 2017-01-04T03:08:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T10:01:44.000Z (about 1 month ago)
- Last Synced: 2025-01-01T07:02:50.657Z (11 days ago)
- Topics: admin, boilerplate, boilerplate-template, bootstrap, flask, foundation, framework, login, python, python3, scaffolding, starter, stripe, template
- Language: HTML
- Homepage: https://www.newline.co/fullstack-flask/
- Size: 7.84 MB
- Stars: 198
- Watchers: 4
- Forks: 53
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-saas-boilerplates-and-starter-kits - Ignite - Flask, commercial (Categories / Python)
- awesome-saas-boilerplates-and-starter-kits - Ignite - Flask, commercial (Categories / Python)
README
[![Ignite](https://user-images.githubusercontent.com/882381/45938197-49cfb880-bf7c-11e8-91ea-94fffd9d054a.png)](https://github.com/sumukh/ignite)
# Ignite for Flask [![Flask PyTest CI](https://github.com/Sumukh/Ignite/actions/workflows/flask-pytest.yml/badge.svg)](https://github.com/Sumukh/Ignite/actions/workflows/flask-pytest.yml)
Ignite is a scaffold for starting new Flask applications. It takes care of the boilerplate code (like User Registration, OAuth, Teams, and Billing), allowing you to focus on building your application. Ignite is built upon best practices for modern Flask applications.
## Features
| Features | Status | Details |
| ------------------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------ |
| User Authentication | ✅ | User Login, Registration, Forgot Password, Email Confirmation |
| OAuth Login | ✅ | Login or Register with Google, Twitter, Facebook, etc. |
| Teams/Groups | ✅ | Multi user teams & groups (with Invite Emails) |
| User Export & Deletion Request | ✅ | Allows users to export their data (for GDPR compliance) |
| API | ✅ | API (with user tokens) users to access data |
| Stripe Product Checkout | ✅ | One time item purchases with credit cards and receipts (using Stripe) |
| Heroku/Docker Deployment | ✅ | Deployment instructions for some platforms. Works on AWS & Google Cloud |
| Send Emails | ✅ | Send email notifications from the application |
| Admin Dashboard | ✅ | Admin dashboard to edit data |
| File Uploads | ✅ | File uploads to cloud storage providers |
| Basic Test Suite | ✅ | Starting point for you to build out tests |
| VS Code Debugger & Editor | ✅ | Configured to make you productive |
| Tested on Windows 10, OSX, and Ubuntu | ✅ | Using Python 3 |
| SaaS Recurring Billing | 💲 (Requires purchasing a license to Ignite) | Team Billing, Usage Based Billing or Unlimited Plans |
| Commercial Usage | 💲 (License Required) | Commercial Usage requires a purchased license |
| Video Content | 💲 | Available as part of [the Fullstack Flask course](https://www.newline.co/fullstack-flask/) |## How to Buy
| Store | Comes With | Price |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| Fullstack Flask Course | The Fullstack Flask Course & Book, hours of videos explaining how to build a SaaS in Flask, and a single license to Ignite Pro | [On Sale (for ~$199) at Newline »](https://www.newline.co/fullstack-flask/) |
| Commercial License | A license for usage on a single site | [($199) »](https://gumroad.com/l/xFvLo) |## Setup
Usage of Python 3 is required. It can be installed [on Python.org](https://www.python.org/downloads/)
```
# Optional but recommended:
python3 -m venv env; source env/bin/activatepip install -r requirements.txt
./manage.py server # or `FLASK_APP=manage FLASK_ENV=development flask run`
```## Development
```
# Development
# If using a virtual env: source env/bin/activate
./manage.py resetdb # to seed data
FLASK_APP=manage FLASK_ENV=development flask run# Go to localhost:5000 in a browser and click on Login
# Login with the following credentials "[email protected]", "test# Production documentation in the repository.
```## Testing
Github Actions is configured to run tests and produce code coverage metrics.
To run tests locally, try this command:
```
APPNAME_ENV=test ./manage.py test --coverage
```### Local Secrets
To configure OAuth login and Stripe billing in development, you will need to set some environment variables. See `.env.local.sample` for an example.
```bash
cp .env.local.sample .env.local
# Edit .env.local with your Stripe & Google test keys
source .env.local
flask run
```You may also want to change some of the constants in `appname.constants` and the `services/branding.py` file to change the name of the application in the UI.
## Deployment
Ignite is not tied to a specific platform for deployment, but it works well on [Heroku](http://heroku.com) and [Dokku](http://dokku.viewdocs.io/dokku/) with minimal configuration.
It is also designed to work well on other cloud providers such as AWS, Google Cloud, and DigitalOcean.
Documentation is currently provided for installations on Dokku.
## Stripe Webhooks Locally
- Install the [Stripe CLI](https://stripe.com/docs/stripe-cli)
- Login to the Stripe CLI (`stripe login`)
- Run `stripe listen --forward-to localhost:5000/webhooks/stripe`
- Use the webhook secret and configure your app to use it (`export STRIPE_WEBHOOK_SECRET=whsec_...`)
- To replay an event in a seperate console: `stripe events resend evt_XYZ`## Screenshots
| Screenshot | Name |
| --------------------------------------- | ------------------------------------------------------- |
| Login / Signup / OAuth / Password Reset | ![login](documentation/screenshots/login.png) |
| Dashboard | ![Dashboard](documentation/screenshots/dashboard.png) |
| Saas Subscription Billing + Console | ![Billing](documentation/screenshots/billing.png) |
| Teams | ![Team](documentation/screenshots/team.png) |
| GDPR/Legal | ![GDPR](documentation/screenshots/gdpr.png) |
| Admin | ![Admin](documentation/screenshots/admin.png) |
| API Tokens | ![API](documentation/screenshots/api.png) |
| Delayed Jobs | ![Jobs](documentation/screenshots/jobs.png) |
| Emails | ![Emails](documentation/screenshots/email.png) |
| File Uploads | ![Files](documentation/screenshots/file-uploads.png) |
| Stripe Customer Portal Integration | ![Stripe](documentation/screenshots/stripe-console.png) |## License
This is a commercial product. You may purchase a license for commercial use at [Ignite Website](https://ignite.sumukh.me)
Here's a summary:
| Features | Ignite | (License) Ignite Premium |
| -------------------------------------------- | -------------- | ------------------------ | --- |
| Cost | Free | $199 per site | |
| Private Non Commercial Use | ✅ | ✅ |
| Commercial Use | No | ✅ |
| Ability to remove "Powered by Ignite" footer | No | ✅ |
| Video Tutorials | No | ✅ |
| Re-license | No | Contact us |
| Support | No | No |
| Warranty | Provided As-is | Provided As-is |
| Refunds | N/A | 30 Day |You can purchase a license at the [Ignite Store](https://gumroad.com/l/xFvLo) or on [Newline as part of the Fullstack Flask course](https://www.newline.co/fullstack-flask/)
For more detailed license information see LICENSE.md
## Credits
Design elements from [tabler](https://github.com/tabler/tabler) & Bootstrap 4.
Built off of [Flask Foundation](https://jackstouffer.github.io/Flask-Foundation/) and the [bootstrapy project](https://github.com/kirang89/bootstrapy)
### Extra Reading
Only building out an API using Flask?
- Use [create-flask-api](https://github.com/Sumukh/create-flask-api)
**Course: [Fullstack Flask: Build a SaaS using Python and Flask](https://www.newline.co/fullstack-flask/)**
Best practices List:
- [Larger Applications With Flask](http://flask.pocoo.org/docs/patterns/packages/).
- [Creating Websites With Flask](http://maximebf.com/blog/2012/10/building-websites-in-python-with-flask/)
- [Getting Bigger With Flask](http://maximebf.com/blog/2012/11/getting-bigger-with-flask/)
- [Miguel Grinberg's Blog](https://blog.miguelgrinberg.com/category/Python)