This script automates the synchronization of files from a local directory to the Online-IDE.de project. It utilizes the Online-IDE.de API to log in, clear the existing workspace, and upload Java files from the specified local directory.
The Online IDE Sync Script is designed to streamline the process of synchronizing your local Java files with the Online-IDE.de project. It performs login, clears the existing workspace, and uploads the Java files from the specified local directory.
- Download SyncOnlineIDE.exe from the latest release. (preferred)
or:
- Clone the repository or download the script file.
- Make sure you have Node.js installed.
- Install dependencies by running:
npm install
oryarn install
(preferred)
Download the latest release and run the .exe-file in your local directory containing the Java files you want to upload to Online-IDE.de.
Don't forget to configure the credentials before running it. See Configuration for more information.
or:
Run the script using the command:
node script.js
The script will prompt you with updates as it progresses through the synchronization process.
Before running the script, ensure that you have a syncconfig.json
file with the required configuration parameters:
user
: Your Online-IDE.de username.password
: Your Online-IDE.de password.workspace
: The name of the workspace on Online-IDE.de.path
: The path within the Online-IDE.de workspace. Keep empty if you want to upload to the root directory.localPath
: The local directory path for Java files. If not specified, the default is set to./
.
Example syncconfig.json
:
{
"user": "your_username",
"password": "your_password",
"workspace": "your_workspace",
"path": "your_path",
"localPath": "./your_local_directory"
}
This script is licensed under the MIT License.
This script is not affiliated with the Online-IDE.de project or Martin Pabst.