decatur / appchen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

appchen

This is a client/server web framework based an Python and modern JavaScript.

  • Wraps the superb client side component codemirror as a Python package.
  • Supports real time streaming via Server Send Events
  • Supports single page applications and in-app navigation
  • Supports on-the-fly web parts
  • Depends on Flask and MongoDB only
  • Uses es6 modules and plain vanilla JavaScript

Setup

Option A: Clone appchen

git clone https://github.com/decatur/appchen.git
cd appchen/
python -m venv ./venv
source venv/Scripts/activate
pip install -r requirements.txt

Option B: Install into Existing Project

pip install git+https://github.com/decatur/appchen.git
pip install appchen

Run Demo Web Server

/c/tools/mongodb/bin/mongod --port 27017 --dbpath /c/data/db
python -m appchen.web_demo.run_server --mongoport=27017 --httpport=8080

You may now navigate to http://localhost:8080 with Chrome or Firefox.

Run Demo Python Client

python -m appchen.web_demo.client --httpport=8080

Build

vi setup.py
git add setup.py
git commit -m'bumped version'
git tag x.y.z
git push & git push --tags
python setup.py sdist bdist_wheel

Publishing to PyPI

python -m twine upload dist/*

About


Languages

Language:JavaScript 47.3%Language:Python 39.7%Language:HTML 10.0%Language:CSS 3.1%