Skip to content

A CLI tool that helps you easily generate boilerplate code for MERN application.

Notifications You must be signed in to change notification settings

momohyusuf/MERN-scaffold

Repository files navigation

MERN SCAFFOLD

mern-scaffold is a CLI tool that helps you to quickly develop basic boilerplate code for your MERN app. You can generate boilerplate code for your Frontend or Backend. You can also generate them as a full stack project.

Installation

By using npm (the recommended way):

npm install -g mern-scaffold

mern-scaffold will be installed globally to your system path.

Usage

After downloading, on you Command line just type

mern-scaffold

Frontend app

The frontend uses vite-plugin-react-swc [vite-plugin-react-swc]

Speed up your Vite dev server with SWC

The following folders and files will be generated

- 📂 layouts
- 📂 pages
- 📂 public
- 📂 src
- 📄 .env
- 📄 .eslintrc.cjs
- 📄 .gitignore
- 📄 index.html
- 📄 package.json
- 📄 postcss.config.js
- 📄 README.MD
- 📄 tailwind.config.js
- 📄 vite.config.js

Extra default packages

The frontend also comes with the following default packages installed:

Component library

You can select a component library to add The two options presently supported are

The Backend

The backend contains basic boilerplate code for an express app

The following folders and files will be generated

- 📂 config
- 📂 controllers
- 📂 middleware
- 📂 model
- 📂 routes
- 📂 utils
- 📂 public
- 📄 .env
- 📄 .gitignore
- 📄 index.js
- 📄 package.json
- 📄 README.MD

The backed also comes with the following default dependencies installed:

Full-stack

This consist of:

  • Everything in frontend
  • Everything in Backend

Starting Application

After The respected folders has been generated run

cd folder_name
npm install
npm run dev

support

If you would like to support me, you can buy me a coffee ☕

About

A CLI tool that helps you easily generate boilerplate code for MERN application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published