Coder Social home page Coder Social logo

githubprojectautomation's Introduction

GithubProjectAutomation

Making, Project Intialization easier with shell, python and github's api. We all have been through the repetitive task of initializing a git repository locally, then creating the repository on github and then manually adding the remote to the local repository.

This scripting tool will automate the process. All you have to provide is the repository's name and it will initialize and create a repostiory on github for you and will also launch your favourite code editor. As of now, it will launch VS Code but I will change it later.

githubautomation

New Scripts Added in 2023

  • cron_job_to_pull_django_project.sh - This script can be used as a cron job for Django application deployed on Gunicorn/Nginx.

Usage

In terminal:

./create.sh nameofyourproject gitignore-env

*gitignore-env is an optional argument that can be used to initiate a .gitignore file. It fetches from the www.gitignore.io/api/ api, e.g Django, Node, Flask e.t.c

What will it do ?

  • Create a git repository locally.
  • Create a repository on github.
  • Add a readme.
  • Add the remote to the local repository and push it to github.
  • Launch VS Code

Supporting OS

Ubuntu, Mac

Prerequisites

  • Python3
  • VS Code*

Setting It Up

  • You need to have github api token, you can get by clicking on Settings -> Developers Settings -> Personal Access Token.
  • Paste the token in the create.py file.
  • In the same file you need to also put your username.
  • There you need to check some of the checkboxes,I have checked all of the checkboxes under admin, user and repo.(That works fine for this particular tool).
  • Create a directory called my-projects in the root (Your repository will be initialized in this folder).
  • Lastly, you need to put your username in place of "yourusername" in line 16 of create.sh.

Common Errors

  • Make the file executable(Permissions).

chmod u+x create.sh

Todo

  • Launching Vs Code

  • Adding .gitignore

Contributions

  • Help in structuring the documentation
  • Provide better comments in the code.

Similar Automation Projects

VLC_CAMERA_AUTOMATION

githubprojectautomation's People

Contributors

amaanabbasi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

githubprojectautomation's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.