zix - Create your SaaS app quickly by adding plugins!
Project description
zix
FastAPI based web app framework.
Introduction
I wanted to build a web app with frontend, backend, database, login, email services, and paywall very quickly.
Since those are common skeleton for most SaazS apps, I built a plugin framework to build apps quickly.
Prereqs
- Python 3.8 or later is installed
Install
Make and activate a Python environment:
python -m venv venv
source ./venv/bin/activate
pip install -U pip
pip install zixweb
Create an app
zix init -w myapp
The rest of the document assumes your project is in myapp
directory.
Run app
zix -w myapp -h 0.0.0.0 -p 4000 serve
Point browser to http://localhost:4000
Frontend and static files
Try modifying myapp/static/compiled/index.html
and run the server again.
Place frontend and static files under myapp/static/compiled
Anything under compiled folder is served under /
as long as the path is not taken by the API endpoints you define.
Vanilla Bootstrap Studio project
Under the myapp directory, you'll find bstudio directory. If you have an active license of Bootstrap Studio, you can open this project.
Go to Export Settings on Bootstrap Studio and set the export path
to myapp/static/compiled
. Then export.
Run the server again. Now you have an (empty) webapp UI.
Add endpoints
Take a look at myapp/plugins/core/routers.py
and myapp/plugins/web/routers.py
.
You can add your service under plugins directory.
Third-party services
In coming release of zix, I'm going to add the complete code to leverage these third-party services:
Auth0 (login)
To be written
Stripe (payment)
To be written
SendGrid (email)
To be written
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file zixweb-0.0.2.tar.gz
.
File metadata
- Download URL: zixweb-0.0.2.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2cca932335cc9114d3b616b0976c1cdf887f645a141eea711ab0182ecc010a7 |
|
MD5 | d301b69e34fb05074b8a0bd096afb23f |
|
BLAKE2b-256 | ea5f0ca50aa5d228b3bf0c932087b5ce4163d4662579e96f560c4679f633e05b |
File details
Details for the file zixweb-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: zixweb-0.0.2-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4f593a53569744b0f8139c2554bf4c0938126aa5a4ea5cb9735717321c5162 |
|
MD5 | ec1df14b6d29979c7d374879325176f5 |
|
BLAKE2b-256 | 2b2cc42a7167fa6a49754a6c7960e43bbc05605de7cb5c09c7bc2dd4b444ccff |