
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
create-mvc-server
Advanced tools
A CLI tool to quickly scaffold a server with a database of your choice
Welcome to the Create MVC Server tool! This utility helps you easily scaffold a new MVC server for your project with an interactive setup.
You can customise your server with the following options:
You can create your project in two ways:
The interactive mode guides you through a series of prompts to configure your project:
npx create-mvc-server my-project
The process includes:
If you already know which template you want to use, you can skip the interactive prompts by specifying a template directly:
npx create-mvc-server my-project --template <template-name>
This mode is perfect for:
Usage: create-mvc-server [options] [project-name]
Options:
-t, --template NAME Specify a template to use.
-h, --help Display this help message.
The CLI dynamically discovers templates from the filesystem. Here are some standard templates you can use:
pg-ts
: Express + PostgreSQL + TypeScriptpg
: Express + PostgreSQL + JavaScriptmongo-ts
: Express + MongoDB + TypeScriptmongo
: Express + MongoDB + JavaScriptmysql-ts
: Express + MySQL + TypeScriptmysql
: Express + MySQL + JavaScriptsqlite-ts
: Express + SQLite + TypeScriptsqlite
: Express + SQLite + JavaScripthono-pg-ts
: Hono + PostgreSQL + TypeScripthono-pg
: Hono + PostgreSQL + JavaScriptThe generated project will include:
# Create a new project with interactive prompts
npx create-mvc-server my-server
# Create a new project using a specific template
npx create-mvc-server my-server --template pg-ts
After creating your project, follow the printed instructions to:
Depending on your chosen database, you'll need to set it up accordingly:
.env
file:
DATABASE_URL=postgresql://user:password@localhost:5432/dbname
.env
file:
MONGODB_URI=mongodb://localhost:27017/dbname
.env
file:
DATABASE_URL=mysql://user:password@localhost:3306/dbname
.env
file:
DATABASE_URL=file:./dev.db
You can deploy the generated server to various platforms, including:
Remember to:
The Create MVC Server tool uses a dynamic template discovery system to find and manage available templates:
template-{id}
.template-[server]-[database]-[language]
.The CLI recognises these technology identifiers in template names:
express
, hono
pg
(PostgreSQL), mongo
(MongoDB), mysql
(MySQL), sqlite
(SQLite)ts
(TypeScript) - omit for JavaScriptWe welcome contributions to improve Create MVC Server! Here's how you can help:
git clone https://github.com/your-username/create-mvc-server.git
cd create-mvc-server
npm install
git checkout -b feature/your-feature-name
npm run build
# Test your changes thoroughly
git commit -m "Add feature: your feature description"
git push origin feature/your-feature-name
You can contribute by creating new templates. Here's how:
template-[server]-[database]-[language]
.package.json
file with appropriate dependencies._gitignore
(which will be renamed to .gitignore
).For the best compatibility:
After creating a new template:
npm run build
.node packages/create-mvc/index.js my-test-project --template your-template-id
If you find a bug or have a feature request:
We appreciate your contributions to making Create MVC Server better!
FAQs
A CLI tool to quickly scaffold a server with a database of your choice
The npm package create-mvc-server receives a total of 0 weekly downloads. As such, create-mvc-server popularity was classified as not popular.
We found that create-mvc-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.