Skip to content

AbpHelper is a tool that help you with developing Abp vNext applications.

License

Notifications You must be signed in to change notification settings

dut3062796s/AbpHelper.CLI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

AbpHelper

AbpHelper is a tool that help you with developing Abp vNext applications.

Make sure backup your source files before using it!

Getting Started

  1. Install AbpHelper CLI tool

    dotnet tool install EasyAbp.AbpHelper -g

    If you prefer GUI, there is also a tool with a fancy UI: AbpHelper.GUI

  2. If you have previously installed it, update it with the following command:

    dotnet tool update EasyAbp.AbpHelper -g

  3. Use ABP CLI to create a test application

    abp new MyToDo

  4. Create an entity

    public class Todo : FullAuditedEntity<Guid>
    {
        public string Content { get; set; }
        public bool Done { get; set; }
    }
  5. Run AbpHelper

    abphelper generate crud Todo -d C:\MyTodo

    • generate crud is a sub command to generate CRUD files
    • Todo specified the entity name we created earlier
    • -d specified the root directory of the ABP project, which is created by the ABP CLI

    AbpHelper will generate all the CRUD stuff , even include adding migration and database updating!

  6. Just rebuild your application and run. See the magic happens:)

    running_demo

Usage

  • Run abphelper -h to see the general help
  • Similarly, you can use -h or --help option to see detailed usage of each of the following command

Commands

  • generate

    Generate files for ABP projects. See 'abphelper generate --help' for details

    • crud

      Generate a set of CRUD related files according to the specified entity

      Demo GIF

    • service

      Generate service interface and class files according to the specified name

      Demo GIF

    • methods

      Generate service method(s) according to the specified name(s)

      Demo GIF

Extensibility

TODO: Describe how to custom the generating steps, and custom templates.

Roadmap

  • More CLI parameters
  • Support ABP module solutions
  • Support MogoDB generation
  • Support Angular UI generation

About

AbpHelper is a tool that help you with developing Abp vNext applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%