Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
A custom generator for MVC folder structures designed for backend applications.
This MVC Generator — A streamlined tool to set up a standardized MVC folder structure for backend applications in Node.js.
dev-mvc
is a command-line tool that automatically generates an organized MVC (Model-View-Controller) folder structure for backend projects. This helps you jump-start your project by creating essential directories and files commonly used in Node.js backend applications, all in a single command.
controllers
, models
, routes
, config
, middleware
, services
, and utils
directories.Running the generator will create the following structure in your current working directory:
project-root/
├── controllers/
│ └── user.controller.js
├── models/
│ └── user.model.js
├── config/
│ └── db.config.js
├── routes/
│ └── user.routes.js
├── middleware/
│ └── auth.middleware.js
├── services/
│ ├── email.service.js
│ └── payment.service.js
├── utils/
│ ├── helper.util.js
│ └── validator.util.js
└── server.js
To install dev-mvc
globally so you can use it from anywhere:
npm install -g dev-mvc
After installation, navigate to the root of your new backend project, then run:
dev-mvc
This command will execute the createBackendFoldersAndFiles()
function, creating the entire MVC folder structure in your current directory.
If you wish to update dev-mvc
to the latest version, simply run:
npm update -g dev-mvc
Feel free to contribute by submitting issues or pull requests to the GitHub repository.
Saqlain
This project is licensed under the MIT License.
FAQs
Automate the creation of a Node.js MVC folder structure for backend applications. Boost productivity with dev-mvc CLI.
The npm package dev-mvc receives a total of 6 weekly downloads. As such, dev-mvc popularity was classified as not popular.
We found that dev-mvc demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.