npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mv-core

v0.2.5

Published

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.3.0.

Downloads

12

Readme

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.