@sharagulov/create-react-monorepo v1.0.7
āŖ create-react-monorepo
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 ā¤ļø