1.0.7 • Published 5 months ago

@sharagulov/create-react-monorepo v1.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

⚪ create-react-monorepo

GitHub Workflow Status npm GitHub License

A professional React + Express monorepo generator for frontend-developers that helps to start projects in seconds.
Perfect for users who need a fast, structured, and scalable setup.

šŸš€ Features

āœ… Automatic project structure: client/ for React, server/ for Node.js
āœ… Supports PostgreSQL (optional)
āœ… Uses EJS templates for dynamic configurations
āœ… Customizable ports and database settings
āœ… Zero manual setup – just run a single command!

šŸ“¦ Installation

You can install it globally:

npm install -g @sharagulov/create-react-monorepo

Or use it instantly with npx:

npx @sharagulov/create-react-monorepo my-project

šŸ› ļø Usage

Once installed, CRM generates a new monorepo.

The script will ask for:

  • Whether to include a PostgreSQL backend
  • Database username, password, port
  • Proxy and PostgreSQL ports
  • Automatically scaffolds a monorepo structure.

šŸ“‚ Project Structure

my-project
ā”œā”€ā”€ client/      # React frontend
│   ā”œā”€ā”€ src/
│   ā”œā”€ā”€ public/
│   ā”œā”€ā”€ package.json
│   └── craco.config.js
ā”œā”€ā”€ server/      # Express backend (optional)
│   ā”œā”€ā”€ controllers/
│   ā”œā”€ā”€ routes/
│   ā”œā”€ā”€ prisma/
│   ā”œā”€ā”€ package.json
│   ā”œā”€ā”€ .env     # Auto-generated from user input
│   └── server.js
└── README.md

šŸ”§ Commands

Inside your project, run:

cd my-project/client && npm install
cd ../server && npm install  # Only if backend is enabled

To start the frontend:

cd client
npm start

To start the backend:

cd server
npm run dev

šŸ“œ Environment Variables (.env)

If you enabled the backend, a .env file will be generated:

DATABASE_URL=postgresql://USERNAME:PASSWORD@localhost:PORT/NAME
SERVER_PORT=3001

You can manually edit these values later.

šŸ“„ License

This project is licensed under the MIT License – you're free to use, modify, and distribute it.

šŸ“ž Contact

Author: Pavel Sharagulov
šŸ“§ Email: pavel.sharagulov@yandex.ru
šŸ”— GitHub: sharagulov
šŸ“¦ npm: @sharagulov


Made with ā¤ļø

1.0.7

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.0

5 months ago