Overview
Thebootstrap-project command creates a new Django SuperApp project by copying a template repository into a target directory. This is the starting point for creating a new SuperApp-based application.
Syntax
Parameters
The directory where the new project will be created. The directory name will also be used as the default project name.
Options
The GitHub repository URL to use as the project template. Must be a valid GitHub HTTPS or SSH URL.Accepted formats:
- HTTPS:
https://github.com/owner/repo - SSH:
[email protected]:owner/repo.git
How It Works
- The command validates the template repository URL format
- Uses Copier to copy the template repository
- Sets the
project_namevariable to the basename of the target directory - Creates the project structure in the specified location
Examples
Basic Usage
Create a project using the default template:my-project directory with project_name set to “my-project”.
Custom Template Repository
Use a custom template repository (HTTPS):Custom Template with SSH
Use SSH authentication for private repositories:Absolute Path
Create a project in a specific location:Validation
The command validates the--template-repo option to ensure it’s a valid GitHub URL:
- Valid HTTPS format:
https://github.com/owner/repo - Valid SSH format:
[email protected]:owner/repo.git
Template Variables
The command automatically passes the following variables to the template:project_name: Extracted from the basename of the target directory
After Bootstrapping
Once your project is created, you can:-
Navigate to the project directory:
-
Install dependencies (typically):
-
Add apps to your project:
Related Commands
bootstrap-app
Create apps inside your new project
pull-template
Update your project with template changes