Giter VIP home page Giter VIP logo

clean-dart-cli's Introduction

Clean Dart CLI

screenshots/logo.png

This project is one cli for integrate Flutter and Dart with Clean Architecture

With this cli you can generate the structure of the folders based on the structure of the Clean Architecture and files like models, usecases and entites for automatize the time of the development.

How to use?

First thing that you need to do is activate the clean-dart-cli, for this run the command bellow in your terminal

$ pub global activate clean_dart_cli

Select options on terminal

$ clean-dart

Generate the layers folders

With clean-dart-cli you can generate all folders of the one specific layer

how to generate domain layer

$ clean-dart gen layer domain /example

screenshots/domain.png

how to generate infra layer

$ clean-dart gen layer infra /example

screenshots/infra.png

how to generate external layer

$ clean-dart gen layer external /example

screenshots/external.png

how to generate ui layer

$ clean-dart gen layer ui /example

screenshots/ui.png

how to generate complete layers

$ clean-dart gen layer complete /example

screenshots/completedartcli.png

Generate Files

how to generate usecases

$ clean-dart gen usecase /example/domain/usecases RegisterUser

screenshots/usecase.png

how to generate entities

$ clean-dart gen entity /example/domain/entities User

screenshots/entity.png

how to generate models

$ clean-dart gen model /example/infra/models User

screenshots/model.png

darthow to generate modelsJs (Model with Json Serializable)

$ clean-dart gen modelJs /user/external/models User

screenshots/model_js.png

how to generate error

$ clean-dart gen error /user/domain/error User

screenshots/error.png

how to generate presentation layer

dart ../clean-dart-cli/bin/clean_dart_cli.dart gen presentation lib/presentation lib/core/navigation/app_routes.json lib/core/navigation/app_routes.dart settings

Upgrade Clean Dart Cli

$ clean-dart upgrade

List Commands

$ clean-dart --help

How to contribute?

You can clone this project and send a pull request with your improvements or open issues

clean-dart-cli's People

Contributors

brunokum avatar nitoba avatar bwolfs2 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.