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

ngx-hipster

v0.7.0

Published

Angular schematics to scaffold angular material applications

Downloads

7

Readme

Ngx Hipster

Angular schematics to scaffold production ready angular material applications

Demo

You can try out demo application at https://vishal423.github.io/ngx-hipster/index.html (login with username: admin and password: admin to access the protected pages)

Demo application uses angular in-memory-api to intercept all back-end api calls.

Pre-requisites

This guide assumes that you have already created a new angular cli application with SCSS styles.

ng new sample-angular-app --interactive=false --prefix=app --style=scss --routing=true

Usage

Install ngx-hipster dependency in your project. Default ng-add schematic will prompt to configure your application with the recommended setup.

ng add ngx-hipster

Default configurations:

  • Scaffold angular material shell application with login support. Default security is compatible with JHipster session authentication.
  • Configure prettier
  • Configure Jest
  • Configure proxy

Entity Schematic

  • Scaffold Create, Update, and List (and Delete dialog) screens.
  • Create new json file to describe your entity structure and place that in the project root directory. As an example, consider the following entity.json that represents the structure of a movie entity. For a more elaborate example, refer to the movie.json used in the demo application.
{
  "name": "movie",
  "pageTitle": "Movies",
  "fields": [
    {
      "label": "Title",
      "name": "title",
      "dataType": "string",
      "controlType": "text",
      "validation": {
        "required": true,
        "minlength": 2,
        "maxlength": 20
      }
    },
    {
      "label": "Plot",
      "name": "plot",
      "dataType": "string",
      "controlType": "textarea",
      "validation": {
        "minlength": 100
      }
    },
    {
      "label": "Genre",
      "name": "genre",
      "dataType": "string",
      "controlType": "radio",
      "validation": {},
      "options": [
        {
          "name": "adventure",
          "label": "Adventure"
        },
        {
          "name": "drama",
          "label": "Drama"
        },
        {
          "name": "sci-fi",
          "label": "Science Fiction"
        }
      ]
    },
    {
      "label": "Release Date",
      "name": "releaseDate",
      "dataType": "date",
      "controlType": "date",
      "format": "MM/dd/yy",
      "validation": {}
    }
  ]
}
  • Execute following command from the project root directory to generate entity layout screens. When prompted, specify path to the entity json file (created in the above step):
$  ng g ngx-hipster:entity
? Provide relative path to the entity Json filename movie.json

Acknowledgements

License

MIT © Vishal Mahajan