https://github.com/thespeedx/github_wrapper
https://github.com/thespeedx/github_wrapper
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/thespeedx/github_wrapper
- Owner: TheSpeedX
- Created: 2022-06-21T17:34:09.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T23:13:15.000Z (almost 4 years ago)
- Last Synced: 2025-04-11T23:51:51.902Z (about 1 year ago)
- Language: Python
- Size: 234 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github_wrapper
This is built using FastAPI in Python.
## How to Run
- ### Initial Setup
First create a `.env` file taking with variables same as in `.example.env`
- Get Your Client ID and Client Secret From Github Application.
- Fill in a Secure Secret Key for Web App to use.
NOTE: While creating your Github Application Fill in callback url as
- ### Without Docker
Make sure you have Python 3.8+ and pip installed.
Install required dependencies.
```bash
pip install -r requirements.txt
```
Start the Server using `uvicorn`
```bash
uvicorn main:app --host 0.0.0.0 --port 8000
```
Now head over to
- ### With Docker
Make sure you have `docker` and `docker-compose` installed.
Build the container and run it
```bash
docker-compose up --build -d
```
Now head over to
## Screenshots
Head Over To to start OAuth

After Authorization, You will get a JWT Token which you need to pass in all future requests

Now We Can Send Request using the JWT Token as Bearer Token
Here is the [POSTMAN COLLECTION](https://www.getpostman.com/collections/a1cf49a6ecd2ccbd0f55) for the requests.
Some Request Examples are shown below:
Create Repo

List Repo
