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

nevm-mvc-scaffold

v1.0.19

Published

Instantly initialize project structure for Node.js applications following the MVC pattern with express.js, vue, vue-router and vite

Downloads

33

Readme

NEVM MVC Scaffolding Tool

npm version License GitHub stars GitHub tag NPM Downloads


Your companion for Node.js app development with a clean MVC structure and a touch of magic!

Introduction

The NEVM MVC Scaffolding Tool is designed to streamline your Node.js application development process by providing you with everything you need to organize your project using the MVC (Model-View-Controller) architecture. With this tool, you can quickly set up your project directories, install necessary dependencies, and generate essential files like server.js, routes, controllers, models, and more.

Features

  • Automatic Directory Creation: The tool automatically creates the necessary directories for your backend (controllers, models, routes, services, config, middleware) and frontend (components, router).

  • Express.js Installation: Optionally install Express.js for building your backend server.

  • ORM Installation: Choose to install Sequelize or Mongoose as your ORM (Object-Relational Mapping) tool for database interaction.

  • Vue.js with Vite Installation: Optionally install Vue.js with Vite for building your frontend application.

  • Vue Router Installation: Automatically install Vue Router for frontend routing.

  • Simple and Interactive: The tool provides a simple and interactive command-line interface (CLI) for guiding you through the setup process.

Directory Structure

After installation, your project structure will look like this:

project-root/
├── backend/
│   ├── controllers/
│   ├── models/
│   ├── routes/
│   ├── services/
│   ├── config/
│   └── middleware/
├── frontend/
│   └── src/
│       ├── components/
│       └── router/
└── server.js

Installation and Usage

To use the NEVM MVC Scaffolding Tool, follow these steps:

  1. Create a new directory for your project and navigate into it:

    mkdir my-nevm-project
    cd my-nevm-project
  2. Install the package:

    npm install nevm-mvc-scaffold
  3. The tool will automatically run after installation. Follow the prompts to configure your project:

    • Choose whether to install Express.js
    • Select an ORM (Sequelize, Mongoose, or none)
    • Decide if you want to install Vue.js with Vite for the frontend
  4. After the setup is complete, your project structure will be ready, and chosen dependencies will be installed.

Post-Installation Steps

After the tool finishes setting up your project:

  1. Review the generated server.js file and customize it as needed.
  2. If you chose to install an ORM, set up your database configurations.
  3. If you installed Vue.js, navigate to the frontend directory to start developing your frontend.
  4. Use the created directory structure to organize your controllers, models, routes, and services.

Scripts

The package includes the following npm scripts:

  • npm start: Runs the scaffolding tool manually (if needed)
  • npm run dev: Starts the Vite development server (if Vue.js was installed)
  • npm run build: Builds the Vue.js application for production (if Vue.js was installed)

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Acknowledgments

Special thanks to all contributors and the open-source community for their valuable contributions.