MERN HELP is a Visual Studio Code extension designed to assist developers working with the MERN stack (MongoDB, Express.js, React.js, Node.js). This extension provides a comprehensive set of code snippets to streamline the development process and increase productivity.
Note : Currently supports only backend node/express app with typescript.
Features
JavaScript and TypeScript Support: Snippets available for both JavaScript and TypeScript.
Backend Snippets: Predefined snippets for setting up environment variables, configuration, and various backend components like models, controllers, middleware, and routes.
Easy to Use: Simply start typing the snippet prefix and press Tab or Enter to insert the snippet.
Installation
Open VS Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
Search for MERN HELP.
Click Install to install the extension.
Usage
Once installed, you can use the snippets in your JavaScript and TypeScript files. Start typing the prefix of the snippet and press Tab or Enter to insert it.
Snippets
How to Use
JavaScript and TypeScript: Provides guidance on how to use the snippets.
Backend Snippets
env-mern-backend(dotenv Configuration): Sets up environment variables using dotenv package.
config-mern-backend(Index Configuration (TypeScript)): Basic setup for "index.ts" in the configuration directory.
index-mern-backend (Index Setup (TypeScript)): Basic setup for "index.ts" in the source directory.
model-user(User Model (TypeScript)): Defines a Mongoose model for a user.
controller-user(User Controller (TypeScript)): Basic CRUD operations for a user.
middleware-auth(Auth Middleware (TypeScript)): Middleware for authentication.
route-user(User Routes (TypeScript)): Route definitions for user-related operations.
model-generic(Generic Model (TypeScript)): Template for creating a generic Mongoose model.
controller-generic(Generic Controller (TypeScript)): Basic CRUD operations for a generic model.
route-generic(Generic Routes (TypeScript)): Route definitions for generic operations.
help-mern-backend: Guideline to use MERN HELP VS Code Extension.