Skip to content

base-al/baseui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BaseUI - Command Line Tool for the BaseUI Framework

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.

Table of Contents


Installation

You can install the Base CLI tool using one of the following methods:

  1. Using the install script:
    curl -sSL https://raw.githubusercontent.com/base-al/baseui/refs/heads/main/install.sh | bash

Getting Started

Verify your installation by running:

baseui --help

This displays the help menu with all available commands and options.


Commands

baseui new

Create a new project using the Base framework.

Usage:

baseui new <project-name>

Example:

baseui new myapp

baseui generate or baseui g

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

base update

Update the Base Core package to the latest version.

Usage:

baseui update

baseui upgrade

Upgrade the Base CLI tool to the latest version.

Examples

Generating a New Project

Create a new project called myapp:

base new myapp
cd myapp
go mod tidy

Generating Modules

Blog System Example:

# 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
 

Contributing

Contributions are welcome! Follow these steps:

  1. Fork the repository.
  2. Create a branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a pull request.

To report issues, use the GitHub Issues page, and provide detailed information to help us address the issue promptly.


License

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.

About

Flutter cli generator for BaseUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published