Skip to main content

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 bsstudio 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zixweb-0.0.1.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

zixweb-0.0.1-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file zixweb-0.0.1.tar.gz.

File metadata

  • Download URL: zixweb-0.0.1.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for zixweb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ca69fb6e3b88fc5618c8a47f1d68890e928ae31f2b54975857f3d2334205bed9
MD5 c712513fd135afae8c57ebb9d49e4cfb
BLAKE2b-256 840b66b1140c888c2a41d1d3b1bd2125733d56d80cf2e1f8ce45c3215ec65bc9

See more details on using hashes here.

File details

Details for the file zixweb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: zixweb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 23.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.7

File hashes

Hashes for zixweb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3b0b3de161ef0ca37e9aa978fb8acf0a2776d47eee011f2f3ce8dcc5d0f2851
MD5 088db04fa73ad94d29cbcd953618e1a5
BLAKE2b-256 1a83771870d4d626120f863b40b1ae26a8c71459ea03409b10efd4bb8b7ce757

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page