0.2.5 • Published 11 months ago

mv-core v0.2.5

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

Metadev-Client-Core

Introduction.

MvCLientCore is a package which unpacks the metadata to render the client components and the routing. Also it creates an abstraction layer for using CRUD endpoints. The package will work best for building ERP apps which have a ton of forms.

Metadev is an abbreviation for Metadata-Driven development.


Installation

npm install mv-core

Usage

  1. Add the below code to your app.component.ts

    public navMenu;
    public appName = "Customer Management ERP";
    constructor( private router: Router) {
        this.navMenu = navMenu 
        // set your default landing page
        this.router.navigate(['customerList']);
    }
    
    public routeTo($event) {
        this.router.navigate([$event])
    }
  2. Add the below code to your app.component.html

    <app-mv-toolbar [appName]="appName"></app-mv-toolbar>
    <div class="row">
        <div class="col-md-2">
            <app-mv-sidenav [navMenu]="navMenu" (emitRoute)="routeTo($event)">
            </app-mv-sidenav>
        </div>
        <div class="col-md-10">
            <router-outlet></router-outlet>
        </div>
    </div>
  3. Make sure you have the following files in your src/app

    1. app.routes.ts
    2. app.menu.ts
  4. Create a folder named pages in src/app

  5. In your app.module.ts import MVComponentsModule
    imports: [
        MVComponentsModule
    ]
  6. To make the best use of this package use mv-server

How it works?

The package is built using Angular. Also the package uses Material Design Components.

Metadev-Server-Example generates the models using simple JSON files (e.g - customer-from). These generated models are copied into to the project folder. Generating these models helps engineers/developers to spend more time on the design rather than the syntax. Also, anyone who does not have any prior experience with typescript will be able to generate models in no-time. The package unpacks these generated models to render the forms. The generated files can be found here.


Example.

An example project which uses MvClientCore can be found here.


Contributing

Thank you for considering contributing to mv-core!

Reporting Bugs

Found a bug? Please open an issue on the GitHub repository and provide as much detail as possible, including steps to reproduce the issue and any error messages received.

Suggesting Enhancements

Have an idea for a new feature or enhancement? Please open an issue on the GitHub repository and include a detailed explanation of the proposed feature, including any relevant use cases or examples.

Pull Requests

We welcome pull requests from the community! Please follow these guidelines when submitting a pull request:

  • Fork the repository and create a new branch from master.
  • Ensure that your code adheres to the existing code style and conventions.
  • Include tests for any new features or changes.
  • Ensure that all tests are passing before submitting the pull request.
  • Provide a clear and concise description of the changes made and the reasoning behind them.

License

By contributing to mv-core, you agree that your contributions will be licensed under the same license as the package.

0.1.2

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.9

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.2.1

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.0.84

1 year ago

0.0.85

1 year ago

0.0.86

1 year ago

0.0.87

1 year ago

0.0.47

1 year ago

0.0.80

1 year ago

0.0.81

1 year ago

0.0.82

1 year ago

0.0.83

1 year ago

0.0.73

1 year ago

0.0.74

1 year ago

0.0.75

1 year ago

0.0.76

1 year ago

0.0.77

1 year ago

0.0.78

1 year ago

0.0.79

1 year ago

0.0.70

1 year ago

0.0.71

1 year ago

0.0.72

1 year ago

0.1.0

1 year ago

0.1.1

1 year ago

0.0.62

1 year ago

0.0.63

1 year ago

0.0.64

1 year ago

0.0.65

1 year ago

0.0.66

1 year ago

0.0.67

1 year ago

0.0.68

1 year ago

0.0.69

1 year ago

0.0.60

1 year ago

0.0.61

1 year ago

0.0.59

1 year ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.54

1 year ago

0.0.55

1 year ago

0.0.56

1 year ago

0.0.57

1 year ago

0.0.58

1 year ago

0.0.50

1 year ago

0.0.48

1 year ago

0.0.49

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.46

1 year ago

0.0.41

2 years ago

0.0.40

2 years ago

0.0.39

2 years ago

0.0.38

2 years ago

0.0.37

2 years ago

0.0.36

2 years ago

0.0.35

2 years ago

0.0.34

2 years ago

0.0.33

2 years ago

0.0.32

2 years ago

0.0.31

2 years ago

0.0.30

2 years ago

0.0.29

2 years ago

0.0.28

2 years ago

0.0.27

2 years ago

0.0.26

2 years ago

0.0.25

2 years ago

0.0.24

2 years ago

0.0.23

2 years ago

0.0.22

2 years ago

0.0.21

2 years ago

0.0.19

2 years ago

0.0.18

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago