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.
- 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.
Ensure you have these installed:
Install rapidmern
globally via npm:
npm install -g rapidmern
Run the CLI tool:
rapidmern generate
Follow the prompts to configure:
- Project name
- MySQL credentials (username, password, database name)
- 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.
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
-
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
.
- React + Tailwind CSS: Responsive UI.
- Authentication: Login/signup with route protection.
- Error Handling: 404 and server error pages.
- Clean Code: Modular, reusable components.
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.
Licensed under the ISC License. See the LICENSE file for details.
- Node.js: Backend runtime.
- Prisma: ORM for MySQL.
- React + Tailwind CSS: Frontend development.
Happy Coding! 🚀