Skip to content

Latest commit

 

History

History
65 lines (37 loc) · 1.83 KB

README.md

File metadata and controls

65 lines (37 loc) · 1.83 KB

Django App: Save GitHub JSON to SQL Database

This Django app allows you to clone a GitHub repository and save its JSON data to an SQL database Asynchronously using celery.

ScreenShots:

gitsync1 gitsync-1 gitsync2 gitsync3 gitsync4

Requirements

To use this app, you will need:

  • Python 3.x
  • Django 3.x
  • Git
  • An SQL database (e.g. PostgreSQL)

Installation

  1. Clone the repository:

git clone https://github.com/your_username/gitsynchub.git

  1. Install the required packages:

pip install -r requirements.txt

  1. Run the migrations:

python manage.py migrate

  1. Start the development server:

python manage.py runserver

  1. Access the app in your web browser at http://localhost:8000/.

Usage

  1. Enter the GitHub repository URL in the input field.
  2. Click the "Clone and Save" button.
  3. Wait for the app to clone the repository and save its JSON data to the SQL database.
  4. Check the SQL database to ensure that the JSON data was saved correctly.

Example

To clone the repository at https://github.com/octocat/hello-world and save its JSON data to an SQL database, enter the following URL in the input field:

https://github.com/octocat/hello-world.git

Contributing

Contributions are welcome! Please feel free to submit a pull request.

License

This app is licensed under the MIT License.