BaseUI is a powerful command-line tool designed to streamline development with the BaseUI framework. It offers scaffolding, module generation, and utilities to accelerate Flutter application development.
You can install the Base CLI tool using one of the following methods:
- Using the install script:
curl -sSL https://raw.githubusercontent.com/base-al/baseui/refs/heads/main/install.sh | bash
Verify your installation by running:
baseui --help
This displays the help menu with all available commands and options.
Create a new project using the Base framework.
Usage:
baseui new <project-name>
Example:
baseui new myapp
Generate a new module with specified fields and options.
Usage:
baseui g <module-name> [field:type ...] [options]
<module-name>
: Name of the module (e.g.,User
,Post
)[field:type ...]
: List of fields with types
Supported Field Types:
- Primitive Types:
string
,text
,int
,bool
,float
,datetime
,sort
,
Example:
baseui g User name:string email:string password:string # Generates a User module with name, email, and password fields
Update the Base Core package to the latest version.
Usage:
baseui update
Upgrade the Base CLI tool to the latest version.
Create a new project called myapp
:
base new myapp
cd myapp
go mod tidy
# Generate User module
baseui g User name:string email:string password:string
# Generate Post module
baseui g Post title:string content:text published_at:time
# Generate Comment module
baseui g Comment content:text postId:int userId:int
Contributions are welcome! Follow these steps:
- Fork the repository.
- Create a branch (
git checkout -b feature/AmazingFeature
). - Commit your changes (
git commit -m 'Add AmazingFeature'
). - Push to the branch (
git push origin feature/AmazingFeature
). - Open a pull request.
To report issues, use the GitHub Issues page, and provide detailed information to help us address the issue promptly.
This project is licensed under the MIT License. See the LICENSE file for more details.
© 2024 Basecode LLC. All rights reserved.
For more information on the Base framework, refer to the official documentation.