npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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

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

  1. Navigate to the backend:
    cd <project-name>/backend
    npm start
  2. Navigate to the frontend:
    cd ../frontend
    npm start
  3. 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, and services.
  • 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!

  1. Fork the repository.
  2. Clone the fork:
    git clone https://github.com/nandu-99/rapidmern.git
  3. Create a new branch:
    git checkout -b feature/new-feature
  4. Make changes and commit:
    git commit -m "Add new feature"
  5. 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! 🚀