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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@teamnhz/create-9mn-app

v1.0.22

Published

A CLI tool to generate full-stack applications with NestJS and React Native

Downloads

79

Readme

Create 9MN App

A powerful CLI tool to generate full-stack applications with NestJS backend and React Native frontend, featuring modular architecture and comprehensive feature sets.

🚀 Features

  • Full-Stack Generation: Generate complete applications with backend and frontend
  • Modular Architecture: Include specific modules like payments, chat, user onboarding, etc.
  • Multiple Backend Options: Support for NestJS and Laravel
  • Frontend Options: React Native for mobile apps and React web admin panels
  • Database Support: PostgreSQL, MySQL, and MongoDB
  • Dynamic Schemas: Support for custom schema definitions
  • Comprehensive Templates: Production-ready code with best practices

📋 Prerequisites

  • Node.js >= 16.0.0
  • npm or yarn package manager

🛠️ Installation

Global Installation (Recommended)

npm install -g @teamnhz/create-9mn-app

Local Installation

npm install @teamnhz/create-9mn-app
npx create-9mn-app

🎯 Usage

Basic Usage

create-9mn-app <project-name>

Advanced Usage with Options

create-9mn-app <project-name> [options]

📖 Command Options

| Option | Description | Default | |--------|-------------|---------| | -b, --backend <backend> | Backend framework (nestjs, laravel) | - | | -f, --frontend <frontend> | Frontend framework (react-native, web-admin) | - | | -m, --modules <modules...> | Modules to include | - | | -a, --app-name <appName> | Application display name | - | | -d, --project-description <description> | Project description | - | | -i, --bundle-identifier <bundleId> | Bundle identifier for React Native | - | | --db <database> | Database type (postgresql, mysql, mongodb) | postgresql | | --dynamic-schemas <file> | Path to JSON file with custom schemas | - |

🏗️ Available Modules

Backend Modules (NestJS)

  • user-onboarding: User registration, authentication, profile management
  • payments: Payment processing with Stripe integration
  • chat: Real-time messaging with Socket.IO
  • push-notifications: Firebase push notification system
  • logs: Application logging system
  • app-logs: User activity logging

Frontend Modules

  • mobile: React Native mobile application
  • web-admin: React web admin panel

📝 Examples

Generate a Basic App

create-9mn-app my-app

Generate App with Specific Modules

create-9mn-app my-app --modules payments chat

Generate App with Custom Configuration

create-9mn-app my-app \
  --app-name "My Awesome App" \
  --project-description "A full-stack application with payments and chat" \
  --bundle-identifier com.mycompany.appname \
  --db mongodb \
  --modules payments chat user-onboarding

Generate App with Dynamic Schemas

create-9mn-app my-app \
  --dynamic-schemas ./multi-schemas.json \
  --modules payments chat

Generate Specific Backend/Frontend

create-9mn-app my-app \
  --backend nestjs \
  --frontend react-native \
  --modules payments chat

🗂️ Project Structure

Generated applications follow a modular structure:

my-app/
├── backend/                 # Backend application
│   ├── src/
│   │   ├── modules/         # Feature modules
│   │   ├── schemas/         # Database schemas
│   │   ├── dtos/           # Data transfer objects
│   │   ├── guards/         # Authentication guards
│   │   ├── services/       # Business logic
│   │   └── controllers/    # API endpoints
│   ├── package.json
│   └── README.md
├── frontend/               # Frontend application
│   ├── mobile/            # React Native app
│   ├── web-admin/         # React web admin
│   └── README.md
└── README.md

🔧 Backend Features (NestJS)

Authentication & Authorization

  • JWT-based authentication
  • Role-based access control
  • Project-based authentication
  • Admin user management

Database Integration

  • MongoDB with Mongoose ODM
  • PostgreSQL with TypeORM
  • MySQL with TypeORM
  • Automatic migrations and seeding

API Features

  • RESTful API design
  • Swagger/OpenAPI documentation
  • Request/response validation
  • Error handling middleware
  • Rate limiting

Real-time Features

  • Socket.IO integration
  • WebSocket connections
  • Real-time messaging
  • Live notifications

Payment Processing

  • Stripe integration
  • Payment intents and refunds
  • Webhook handling
  • Transaction management

Email System

  • Nodemailer integration
  • AWS SES support
  • Email templates
  • Template variables

📱 Frontend Features (React Native)

Mobile App

  • React Native with TypeScript
  • Navigation with React Navigation
  • State management with Zustand
  • API integration with Axios
  • Real-time features with Socket.IO

Web Admin Panel

  • React with TypeScript
  • TanStack Router for routing
  • Shadcn UI components
  • Admin dashboard
  • User management interface

🗄️ Database Support

MongoDB

  • Mongoose ODM
  • Schema validation
  • Indexing
  • Aggregation pipelines

PostgreSQL

  • TypeORM integration
  • Migrations
  • Relations
  • Transactions

MySQL

  • TypeORM integration
  • Migrations
  • Relations
  • Transactions

🔄 Dynamic Schemas

Support for custom schema definitions using JSON files:

{
  "schemas": [
    {
      "name": "Product",
      "fields": [
        {
          "name": "name",
          "type": "string",
          "required": true
        },
        {
          "name": "price",
          "type": "number",
          "required": true
        }
      ]
    }
  ]
}

🚀 Getting Started

  1. Install the generator:

    npm install -g @teamnhz/create-9mn-app
  2. Generate your app:

    create-9mn-app my-app --modules payments chat
  3. Navigate to your project:

    cd my-app
  4. Start the backend:

    cd backend
    npm install
    npm run start:dev
  5. Start the frontend:

    cd frontend/mobile
    npm install
    npx expo start

📚 Documentation

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit a pull request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🆘 Support

For support and questions:

  • Create an issue on GitHub
  • Check the documentation
  • Review the examples

🔗 Links


Built with ❤️ by NHZ Team