white duck Project Starter
A command-line tool for quickly creating new projects from templates. Automatically discovers and provides commands for all templates in the templates directory.
Installation
git clone https://github.com/whiteduck-dev/project-starter.git
cd project-starter
uv build
uv pip install -e .
Usage
Install uv
Visit the official documentation for detailed installation instructions:
List available templates:
uvx whiteduck --help
Create a new project:
uvx whiteduck react
uvx whiteduck react -o my-project
Get help for a specific template:
uvx whiteduck react --help
Available Templates
-
react - A modern React project template with:
- TypeScript support
- Vite for fast development
- TailwindCSS for styling
- Shadcn/ui components
- Python backend structure
-
lib - A template for creating Python libraries
- Modern Python package structure
- Testing setup
- Documentation scaffolding
-
package - A template for Python packages
- Basic package structure
- Development tools configuration
- Distribution setup
Adding New Templates
- Create a new directory under
src/whiteduck/templates/
- Name the directory what you want the command to be (e.g.,
api
for whiteduck api
) - Add your template files to this directory
- The command will be automatically available - no code changes needed
For example:
mkdir src/whiteduck/templates/api
cp -r my-api-files/* src/whiteduck/templates/api/
uv run whiteduck api --help
Links
License
Copyright © 2024 white duck GmbH. All rights reserved.