ameen-mvc v1.0.4
š ameen-mvc - A Modern MERN Stack CLI Generator
A CLI tool to generate a modern, Windows-compatible MERN stack project with MVC architecture.
š Overview
ameen-mvc is a simple and efficient CLI tool to generate a MERN (MongoDB, Express.js, React, Node.js) stack project with a clean MVC architecture. It helps developers set up a full-stack project within seconds.
⨠Features
ā MERN Stack Ready - Generates a full-stack project with backend and frontend.
ā MVC Architecture - Organized file structure for scalability.
ā Windows-Compatible - Ensures smooth setup on Windows.
ā Pre-configured Scripts - Includes development, production, and deployment scripts.
ā Authentication Middleware - JWT-based authentication setup included.
ā
MongoDB Configuration - Pre-set for database connection with .env
support.
ā Git Initialization - Initializes a Git repository for easy version control.
š ļø Installation
To install the CLI globally on your system, run:
npm install -g ameen-mvc
š Usage
To create a new MERN project, run:
ameen-mvc myProject
This will:
ā Create a new myProject/
directory.
ā Generate a MERN MVC folder structure.
ā Install backend dependencies.
ā Initialize Git.
ā Create a React frontend inside client/
.
š Project Structure
myProject/
āāā client/ # React frontend (Generated using create-react-app)
āāā controllers/ # Business logic (MVC)
āāā models/ # Mongoose schemas
āāā routes/ # Express routes
āāā middleware/ # JWT authentication, logging, etc.
āāā config/ # Database connection
āāā utils/ # Helper functions
āāā tests/ # Test cases
āāā .gitignore # Ignoring unnecessary files
āāā .env # Environment variables
āāā package.json # Project metadata & scripts
āāā server.js # Express server entry point
āāā README.md # Project documentation
š Available Scripts
Inside your generated project, you can run:
š¹ Start Backend Server
npm start
š¹ Start React Frontend
cd client
npm start
š¹ Run Both Backend & Frontend Together
npm run dev
š¹ Install Frontend Dependencies
npm run install-client
š¹ Build Frontend for Production
npm run build
ā Configuration
Before running the project, configure your .env
file:
MONGODB_URI=mongodb://localhost:27017/your-database
JWT_SECRET=your-secret-key
PORT=5000
š Dependencies
Backend
- Express.js
- Mongoose
- Morgan
- Helmet
- Compression
- Cors
- Dotenv
- JWT Authentication
Development Tools
- Nodemon
- Concurrently
š Contributing
Contributions are welcome! Follow these steps:
- Fork this repository.
- Create a feature branch:
git checkout -b feature-newFeature
- Commit your changes:
git commit -m "feat: add new feature"
- Push to your branch:
git push origin feature-newFeature
- Open a Pull Request.
š License
This project is licensed under the MIT License - feel free to use and modify it!
ā Show Some Love
If you found this tool useful, please ā star this repository on GitHub! š
š GitHub Repo: ameen-mvc)
š NPM Package: ameen-mvc)
Thank you for using ameen-mvc! š