Git2Pantheon is a set of REST API that facilitates uploading of git repo containing modular document to Pantheon.
- Python 3
- Pip 3
- Redis server running locally
- Clone the fork of this repo.
git clone YOUR_FORK_OF_THIS_REPO
- Change directory to the cloned repo.
cd git2pantheon
- Create and activate a virtual environment.
python3 -m venv .
venv/bin/activate
- Install the requirements.
pip3 install --user -r requirements.txt
-
Set and export the following environment variables
a. PANTHEON_SERVER
b. UPLOADER_PASSWORD
c. UPLOADER_USER -
Run the service.
python3 git2panthenon/wsgi.py
- The swagger docs can be found at:
http://localhost:5000/apidocs/