Scaffold is a project structure generator tool that automates the setup of new projects, allowing developers to dive straight into building their applications without the hassle of initial configuration.
- Project Generation: Quickly create new projects using predefined templates.
This section will guide you through setting up the tool on your local machine.
Before running this tool, ensure the following software is installed on your system:
- JRE or JDK 17, or newer. You can download the latest version from Adoptium.
-
Download the latest release.
-
Extract the downloaded file (.zip or .tar.gz) to your preferred location.
-
Set the PATH variable:
Windows
-
Right-click on "This PC" or "My Computer" and select "Properties".
-
Navigate to "Advanced system settings" → "Advanced" tab → "Environment Variables".
-
Under "User variables", locate the "Path" variable. If it doesn't exist, create it by clicking "New", naming it "Path", and setting its value.
-
If "Path" exists, select it and click "Edit" → "New", then add the absolute path to the
bin
directory of your extracted file. -
Click "OK" on each open window to save your changes.
Linux and macOS
-
Add the following line to your
~/.bashrc
(for bash) or~/.zshrc
(for zsh):export PATH="$PATH:/path/to/bin"
Replace
/path/to/bin
with the absolute path to thebin
directory of your extracted file. -
Apply changes by running
source ~/.bashrc
(for bash) orsource ~/.zshrc
(for zsh). Alternatively, restart your terminal to apply the changes.
-
-
Verify installation:
scaffold --version
-
Follow the steps outlined here to configure your template collection.
-
Run the following command to list all available templates:
scaffold --list-templates
You can find an overview of each template here.
-
Create a new project using the desired template with the following command:
scaffold create -t <template> <directory>
Replace
<template>
with the name of the template you've chosen, and<directory>
with the desired name for your project's directory.Run
scaffold create --help
for a full list of options available for this command.
This project is available under the terms of the GPL-3.0 license.
© 2024 Mayeku Khisa.