This PowerShell script automates the setup of Node.js and Spring Boot projects, including the creation of corresponding GitHub repositories to host the projects. It interacts with the GitHub API to create repositories and includes features such as checking for Node.js and npm installations, creating project folders, and setting up GitHub repositories.
Before running this script, ensure that the following prerequisites are met:
- PowerShell is installed on your system.
- You have a GitHub account.
- You have a GitHub Personal Access Token (PAT) with appropriate permissions (Make sure to check the repos section when creating the PAT).
-
Clone this repository to your local machine:
git clone https://github.com/houdasam/automate-project
-
Navigate to the directory containing the script:
cd your-repository
To use this script, follow these steps:
-
Open PowerShell.
-
Navigate to the directory containing the script.
-
Run the script with the following command:
.\automating-script.ps1 project-name project-type
Replace
project-name
with the desired name for your project andproject-type
with either node or spring-boot depending on the type of project you want to create. -
Follow the prompts to enter additional information such as GitHub credentials and repository visibility.