https://github.com/redhataccess/git2pantheon
Git2Pantheon is a set of REST API that facilitates uploading of git repo containing modular document to Pantheon.
https://github.com/redhataccess/git2pantheon
Last synced: 8 months ago
JSON representation
Git2Pantheon is a set of REST API that facilitates uploading of git repo containing modular document to Pantheon.
- Host: GitHub
- URL: https://github.com/redhataccess/git2pantheon
- Owner: redhataccess
- Created: 2021-01-18T08:52:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T19:43:58.000Z (almost 2 years ago)
- Last Synced: 2024-09-18T00:18:01.502Z (almost 2 years ago)
- Language: Python
- Size: 41 KB
- Stars: 2
- Watchers: 22
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Git2Pantheon is a set of REST API that facilitates uploading of git repo containing modular document to Pantheon.
## Requirements
1. Python 3
2. Pip 3
3. Redis server running locally
## Setting up your development environment
1. Clone the fork of this repo.
```
git clone YOUR_FORK_OF_THIS_REPO
```
2. Change directory to the cloned repo.
```
cd git2pantheon
```
3. Create and activate a virtual environment.
```
python3 -m venv venv
```
```
source venv/bin/activate
```
4. Install the requirements.
```
pip3 install .
```
5. Set and export the following environment variables
a. PANTHEON_SERVER
b. UPLOADER_PASSWORD
c. UPLOADER_USER
d. REDIS_SERVICE
6. Set the app name for flask run command
```
export FLASK_APP=git2pantheon
```
7. Run the service.
```
flask run
```
8. The swagger docs can be found at:
http://localhost:5000/apidocs/
_Note_: _Please don't try to run cache clear API_