Metadata-Version: 2.1
Name: appchen
Version: 0.3.6
Summary: A client/server web framework based on Python and modern JavaScript.
Home-page: https://github.com/decatur/appchen
Author: Wolfgang Kühn
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.6,<4.0
Description-Content-Type: text/markdown
Requires-Dist: flask (<2.0,>=1.1)
Requires-Dist: gridchen (<0.2.0,>=0.1.3)
Requires-Dist: pymongo (<4.0,>=3.7)
Requires-Dist: requests (<3.0.0,>=2.18.0)
Requires-Dist: sseclient (<0.0.25,>=0.0.24)

# 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

````shell script
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

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

# Run Demo Web Server

````shell script
/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

````shell script
python -m appchen.web_demo.client --httpport=8080
````

# Build

````shell script
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

````shell script
python3 -m twine upload --repository testpypi dist/*
````


