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

generator-crudangnode

v0.0.1

Published

A generator that takes a Datamodel in a JSON file and generates an Angular Frontend and Node.js Backend with CRUD functionality

Downloads

2

Readme

generator-crudangnode NPM version Build Status Coverage percentage

A generator that takes a Datamodel in a JSON file and generates an Angular Frontend and Node.js Backend with CRUD functionality

Installation

  1. Install Yeoman by running npm install -g yo.
  2. Install generator-crudangnode by running npm install -g generator-crudangnode.
  3. Generate a new project by running yo crudangnode.

MongoDB Cloud

  • The generator uses the cloud version of MongoDB (https://cloud.mongodb.com).
  • Create a MongoDB cloud account. Store the MongoDB URI in the configuration file.
  • You can also use the DB_USER and DB_PASS environment variables where you store the credentials for more security. These are read in the code and stored as mongo_username and mongo_password. In the URI, these variables can be used afterwards, as you can see in the following JSON configuration example.

Config Format

  • You can start without an existing configuration file. In the generator prompt select "no configuration file" and create one in the following dialogs.
  • For table names, use the singular and plural forms, separated by a slash.
  • Type options: "string", "number", "boolean".
  • You can use references by writing the plural form of the table, followed by a dot, and the name of the attribute.
  • Options and radio buttons are supported for the dialog. For details, see the JSON file.
  • Date selection is also supported for the dialog. Select from: "date": "basic", "date": "rangeBegin", "date": "rangeEnd". If you use the range date selection, you must assign an attribute with "date": "rangeBegin" and an attribute with "date": "rangeEnd".
{
  "tables": {
    "Antrag/Antraege": {
      "Mitarbeiter": {
        "type": "string",
        "require": "true",
        "reference": "Mitarbeiter.Name"
      },
      "Tage": {
        "type": "number",
        "require": "true"
      },
      "Geschlecht": {
        "type": "number",
        "require": "true",
        "radio": {
            "radio1": "weiblich",
            "radio2": "männlich",
            "radio3": "divers"
        }
      }
    },
    "Mitarbeiter/Mitarbeiter": {
      "Name": {
        "type": "string",
        "require": "true"
      },
      "Wohnort": {
        "type": "string",
        "require": "true",
        "option": {
          "option1": "Paderborn",
          "option2": "Bielefeld"
        }
      }
    }
  },
  "mongodbURI": "`mongodb+srv://${mongo_username}:${mongo_password}@cluster0.jvjd1n7.mongodb.net/?retryWrites=true&w=majority`",
  "database": "database100"
}

Yeoman-UI

  • Yeoman-Ui provides a comprehensive user experience for Yeoman generators, eliminating the need to communicate via the command line.
  • You can use the VSCode extension or the browser. (https://github.com/SAP/yeoman-ui)

Start Client And Server After Generation

  • Navigate to the server folder and run "node index.js" to start the server.
  • Launch another window and navigate to the client folder. Run 'npm start' to start the client. By default, the following address is used: http://localhost:4200/.

Getting To Know Yeoman

License

MIT © Johannes Kaiser