rapidmern
v1.0.0
Published
RapidMERN is a command-line tool for generating a complete MERN stack boilerplate with Prisma and MySQL integration, enabling quick project setup for full-stack applications.
Downloads
83
Maintainers
Readme
RAPIDMERN - Full Stack Boilerplate Generator
rapidmern
is a CLI tool for quickly setting up a full MERN stack boilerplate (MySQL, Express, React, Node.js) with Prisma ORM. It provides an opinionated, scalable, and maintainable structure using MVC for the backend and Tailwind CSS for the frontend.
Features
- Full-Stack Boilerplate: Quickly generate a complete MERN stack boilerplate.
- Prisma ORM: Simplified database management with MySQL support.
- MVC Architecture: Cleanly organized backend with controllers, routes, and services.
- Pre-Built CRUD APIs: Ready-to-use APIs for user management.
- Responsive Frontend: React with Tailwind CSS for modern UI design.
- Authentication: Token-based login, signup, and protected routes.
- Customizable: Easily modify templates to match your project needs.
Prerequisites
Ensure you have these installed:
Installation
Install rapidmern
globally via npm:
npm install -g rapidmern
Usage
Generate a New Project
Run the CLI tool:
rapidmern generate
Follow the prompts to configure:
- Project name
- MySQL credentials (username, password, database name)
Start Your Project
- Navigate to the backend:
cd <project-name>/backend npm start
- Navigate to the frontend:
cd ../frontend npm start
- Open
http://localhost:3000
to view the app.
Project Structure
The generated boilerplate includes:
project/
├── backend/
│ ├── prisma/ # Prisma schema for DB
│ ├── src/
│ │ ├── config/ # DB configuration
│ │ ├── controllers/ # Logic for API endpoints
│ │ ├── middlewares/ # Authentication checks
│ │ ├── routes/ # API routes
│ │ ├── services/ # Reusable logic
│ │ ├── utils/ # Utility functions
│ │ ├── app.js # Backend setup
│ │ └── server.js # Entry point
├── frontend/
│ ├── src/
│ │ ├── api/ # API service
│ │ ├── components/ # UI components
│ │ ├── pages/ # React pages
│ │ ├── App.js # Root component
│ │ └── index.js # Entry point
Features at a Glance
Backend
- MVC Architecture: Organized into
controllers
,models
,routes
, andservices
. - Prisma ORM: Database integration with migrations.
- Token-based Authentication: Secure routes using middlewares.
- Environment Configuration: Manage secrets with
.env
.
Frontend
- React + Tailwind CSS: Responsive UI.
- Authentication: Login/signup with route protection.
- Error Handling: 404 and server error pages.
- Clean Code: Modular, reusable components.
Contributing
We welcome contributions!
- Fork the repository.
- Clone the fork:
git clone https://github.com/nandu-99/rapidmern.git
- Create a new branch:
git checkout -b feature/new-feature
- Make changes and commit:
git commit -m "Add new feature"
- Push and create a pull request.
License
Licensed under the ISC License. See the LICENSE file for details.
Acknowledgments
- Node.js: Backend runtime.
- Prisma: ORM for MySQL.
- React + Tailwind CSS: Frontend development.
Happy Coding! 🚀