Skip to content

This is a simple project automation program written in python aimed at reducing time taken in project creation all the way to Version control set up 🤓 🤘

Notifications You must be signed in to change notification settings

JosephRidge/project-creation-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set-Up Process

Prerequisites

  1. Python
  2. Selenium
  3. Code Editor e.g. Vs Code

Installing Selenium :

Depending on the version of python your have you can either install it via : for python version 2 pip install selenium for python version 3 pip3 install selenium . (Selenium Documentation)

Installing Chromium Drivers

  1. Check your Chrome browser version ( help > About Google Chrome ). chrome

  2. Navigate to chromium drivers.

  3. Select the particular driver version that is similar to your chrome version. chromium

  4. Download and extract it . Screenshot at 2021-12-28 18-18-35

  5. Make it executable chmod +x chromedriver Screenshot at 2021-12-28 18-22-03

  6. Move to a shared folder : sudo mv chromedriver /usr/local/share/chromedriver Screenshot at 2021-12-28 18-27-17

  7. Link to your bin directory and afterwards confirm if successful by printing out the version of your chromedriver : Screenshot at 2021-12-28 18-31-56

Build Process

  1. Create folder , cd to the folder .
  2. Create two python files , secrets.py and appcreate.py
  3. Launch Github on browser and create repository for it.
  4. On terminal run : touch .gitignore && echo 'secrets.py' >> .gitignore this command will allow you not to push your secrets.py file to git as it will contain your credentials.
  5. Proceed with the respective git commands to push the project to github repo.
  6. Proceed to Coding :

Coding

  1. secrets.py Will contain your email address, passowrd and Personal Access Token ( i created one for each project type )

  2. createapp.py Will contain your operations :

  • User to Select which type of app to build
  • create directory of particular app in respective project type directory
  • Launch Github
  • create new repository
  • intialize project locally
  • commit and push project to github repo
  • done

The implementation runs cases of VueJS | Flutter | Ardunio updates will be made on the Android and Arduino sections.

Thank you and Happy automation.

Considerations taken :

Instances When github request otp input we request user to input otp on terminal and proceed with operation.

def githubAccountVerfication(driver):
    print("\n******************** ENTER GITHUB OTP ********************\n")
    githubOTPCode = driver.find_element(By.XPATH, '//*[@id="otp"]')
    if(githubOTPCode != None):
        gitOtp = input("Input your OTP code : ")
        githubOTPCode.send_keys(gitOtp)
        githubOTPButton = WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH,'//*[@id="login"]/div[3]/form/button')))
        githubOTPButton.click()

    else:
        print("Proceeding to github repo creation ....")
    print("\n**********************************************************\n")

About

This is a simple project automation program written in python aimed at reducing time taken in project creation all the way to Version control set up 🤓 🤘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages