VaporCMS - The greatest content management system that will never exist

Related tags

CMS VaporCMS
Overview

VaporCMS

The greatest content management system that will never exist

Overview

WordPress is a huge success but could it be done better? Maybe being more opinionated would help with consistency and / or simplicity. I don't really like PHP so that's gonna go. This initial sketch is going to use Python / Go but it's just a PoC. PostgreSQL is going to be the database (no ORM, but will have a storage facade). All state lives in the DB, nothing lives on the file system (stateless web servers, caching will play a role). In general, HTML rendering will be handled by the server.

Design

The core system is nothing more than a bare-bones set of relationships between the primitives described below. The expected "baseline" functionality of the CMS will be implemented as a set of pre-defined plugins that ship with the system. This ensures that the plugin design is flexible enough to meet most requirements. The page builder, plugin manager, user manager, etc will all be implemented as plugins.

Wouldn't that create a chicken and the egg problem? It would if these baselines plugins didn't ship with the application. They can always be replaced by others if desired (a diff page builder, for example). These are some intense dog-fooding goals but I think they are critical to get right. This project strives to achieve a similar level of design efficiency and orthogonality as the level design in Dark Souls 1.

Primitives

These are super important and should be selected with great intention. In no particular order:

  • Page
    • flexible
    • open-ended
    • what combo of HTML / CSS / JS?
    • how can they refer to other "partial" page templates?
    • how do you link up the jinja template data?
    • default set + custom models as needed?
    • page "types" like django? DetailView, ListView, etc? map to a model?
  • Form
    • represents data to be sent to the application
    • independent of a particular design / layout
    • just the field names, types, etc
  • Route
    • maps URLs to Pages
  • Model
    • Record type of data that the site cares about
    • User, page, form, route, etc (defined by core plugin)
    • Relationship as separate primitive? Or defined within models?
    • Should I leverage an ORM based on this? SQLA? Peewee? GORM?!?
  • Plugin
    • allow for near-arbitrary customization of appearance and behavior
    • can be dragged and dropped in as a bundle (like WP)
    • written in Python / Go
    • can contain static files (HTML / CSS / JS)?
    • can plugins define pages at all? or just models / behavior?
    • isolated: separate / sub process? container w/ a REST API?
    • require Dockerfile / plugin.yml to be in repo root?

Plugin API

Super rough sketch:

  • GET / - Return plugin metadata: name, version, models, implemented endpoints, etc

Model API

This is based on Kong's DAO concept. Each custom model definition will generate the following endpoints:

  • POST / / - Create a new record
  • GET / / - Get all records
  • GET / /:id - Get a record by primary key
  • PUT / /:id - Update an existing record
  • DELETE / /:id - Delete an existing record

References

asyncpg
starlette
uvicorn
Docker SDK for Python
Django-based CMS
Kong Plugin Structure
Kong Plugin DAOs
Kong Plugin DAO API
Kong Plugin Basic Example

Setup

This project uses PostgreSQL for persistent storage. To develop locally, you'll an instance of the database running somehow or another. I find Docker to be a nice tool for this but you can do whatever works best.

The following commands start the necessary containers and define environment variables that the app will look for:

docker compose up -d
export VAPORCMS_DATABASE_URL=postgresql://postgres:postgres@localhost:5433/postgres

You'll need to run the initial migrations, too:

psql $VAPORCMS_DATABASE_URL < create.sql

These containers can be stopped via:

docker compose down
You might also like...
Kotti is a high-level, Pythonic web application framework based on Pyramid and SQLAlchemy. It includes an extensible Content Management System called the Kotti CMS.

Kotti Kotti is a high-level, Pythonic web application framework based on Pyramid and SQLAlchemy. It includes an extensible Content Management System c

LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`

Quokka The Happiest CMS in the world Quokka is a Content Management Framework written in Python. A lightweight framework to build CMS (Content Managem

The lektor static file content management system
The lektor static file content management system

Lektor Lektor is a static website generator. It builds out an entire project from static files into many individual HTML pages and has a built-in admi

A Django content management system focused on flexibility and user experience
A Django content management system focused on flexibility and user experience

Wagtail is an open source content management system built on Django, with a strong community and commercial support. It's focused on user experience,

The lektor static file content management system
The lektor static file content management system

Lektor Lektor is a static website generator. It builds out an entire project from static files into many individual HTML pages and has a built-in admi

A simple python library for fast image generation of people who do not exist.
A simple python library for fast image generation of people who do not exist.

Random Face A simple python library for fast image generation of people who do not exist. For more details, please refer to the [paper](https://arxiv.

Pytorch implementation of our paper under review β€” Lottery Jackpots Exist in Pre-trained Models

Lottery Jackpots Exist in Pre-trained Models (Paper Link) Requirements Python = 3.7.4 Pytorch = 1.6.1 Torchvision = 0.4.1 Reproduce the Experiment

A Python 3.6+ package to run .many files, where many programs written in many languages may exist in one file.
A Python 3.6+ package to run .many files, where many programs written in many languages may exist in one file.

RunMany Intro | Installation | VSCode Extension | Usage | Syntax | Settings | About A tool to run many programs written in many languages from one fil

A not exist person image generator python module

A not exist person image generator python module

A person does not exist image bot

A person does not exist image bot

A not exist cat image generator python package

A not exist cat image generator python package

An automation program that checks whether email addresses are real, whether they exist and whether they are a validated mail

Email Validator It is an automation program that checks whether email addresses are real, whether they exist and whether they are a validated mail. Re

Filtering user-generated video content(SberZvukTechDays)Filtering user-generated video content(SberZvukTechDays)
Filtering user-generated video content(SberZvukTechDays)Filtering user-generated video content(SberZvukTechDays)

Filtering user-generated video content(SberZvukTechDays) Table of contents General info Team members Technologies Setup Result General info This is a

Python script for changing the SSH banner content with other content

Banner-changer-py Python script for changing the SSH banner content with other content. The Script will take the content of a specified file range and

Dead simple CLI tool to try Python packages - It's never been easier! :package:
Dead simple CLI tool to try Python packages - It's never been easier! :package:

try - It's never been easier to try Python packages try is an easy-to-use cli tool to try out Python packages. Features Install specific package versi

🍦 Never use print() to debug again.

IceCream -- Never use print() to debug again Do you ever use print() or log() to debug your code? Of course you do. IceCream, or ic for short, makes p

Anaconda turns your Sublime Text 3 in a full featured Python development IDE including autocompletion, code linting, IDE features, autopep8 formating, McCabe complexity checker Vagrant and Docker support for Sublime Text 3 using Jedi, PyFlakes, pep8, MyPy, PyLint, pep257 and McCabe that will never freeze your Sublime Text 3 :electric_plug: Generating short urls with python has never been easier
:electric_plug: Generating short urls with python has never been easier

pyshorteners A simple URL shortening API wrapper Python library. Installing pip install pyshorteners Documentation https://pyshorteners.readthedocs.i

:electric_plug: Generating short urls with python has never been easier
:electric_plug: Generating short urls with python has never been easier

pyshorteners A simple URL shortening API wrapper Python library. Installing pip install pyshorteners Documentation https://pyshorteners.readthedocs.i

Owner
Andrew Dailey
Andrew Dailey
LOOKING FOR NEW MAINTAINER - Quokka is a Content Management System - `docker run --rm -it -p 5000:5000 quokka/quokka`

Quokka The Happiest CMS in the world Quokka is a Content Management Framework written in Python. A lightweight framework to build CMS (Content Managem

Quokka Project 2.2k Jan 1, 2023
A Django content management system focused on flexibility and user experience

Wagtail is an open source content management system built on Django, with a strong community and commercial support. It's focused on user experience,

Wagtail 13.8k Jan 1, 2023
The lektor static file content management system

Lektor Lektor is a static website generator. It builds out an entire project from static files into many individual HTML pages and has a built-in admi

Lektor CMS 3.6k Dec 29, 2022
Indico - A feature-rich event management system, made @ CERN, the place where the Web was born.

Indico Indico is: ? a general-purpose event management tool; ? fully web-based; ? feature-rich but also extensible through the use of plugins; βš–οΈ O

Indico 1.4k Dec 31, 2022
Library Management system designed for managing and operating various aspects of a library

Proposal This proposal is written to clarify the project work of Information Systems, assigned to us as an individual task in order to tackle the case

Prawal 1 Oct 27, 2021
CSM: Construction Safety Management system

CSM: Construction Safety Management system 1. μ„œλΉ„μŠ€ μ†Œκ°œ κ°œμš”: κ³΅μ‚¬ν˜„μž₯μ—μ„œμ˜ 졜적의 μ•ˆμ „μ§„λ‹¨κΈ°μˆ μ„ ν†΅ν•œ κ³ λ„ν™”λœ μ‹œμŠ€ν…œμœΌλ‘œ κ°œμ„ ν•˜κ³ μž 함 λͺ©ν‘œ: μ•ˆμ „ κ΄€λ ¨ μ£Όμš” μ‹œκ°λ°μ΄ν„°λ₯Ό Cross-Domain으둜 ν™œμš©ν•˜μ—¬ 톡합 μ•ˆμ „ κ΄€λ¦¬κΈ°μˆ μ˜

null 5 Jul 29, 2022
A course management web application

umber a course management web app built with python Flask, sqlite3, and git. installation Tested on Ubuntu 18 with python 3.5. # -- Install the system

Jim Mahoney 6 Jun 3, 2022
wger Workout Manager is a free, open source web application that helps you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility.

wger (ˈvɛɑɐ) Workout Manager is a free, open source web application that helps you manage your personal workouts, weight and diet plans and can also be used as a simple gym management utility.

wger Project 2k Dec 29, 2022
Bringing emacs' greatest feature to neovim - Tetris!

nvim-tetris Bringing emacs' greatest feature to neovim - Tetris! This plugin is written in Fennel using Olical's project Aniseed for creating the proj

null 129 Dec 26, 2022
Student-Management-System-in-Python - Student Management System in Python

Student-Management-System-in-Python Student Management System in Python

G.Niruthian 3 Jan 1, 2022