nexra-cli
v1.3.2
Published
Simple MERN CRUD generator — flat, readable projects for students and freelancers
Maintainers
Readme
NEXRA
Simple MERN CRUD generator for students, exams, and freelancers. Generates flat, readable React + Express + MongoDB projects.
Install
npm install -g nexra-cli
# or
npx nexra-cliRequires Node.js 18+.
Commands
| Command | Description |
|---------|-------------|
| nexra | Create a new project (interactive) |
| nexra init | Same as above |
| nexra g | Wizard: add a CRUD module |
| nexra g product | Regenerate from .nexra/schemas/product.json |
| nexra finalize | Remove generator artifacts; leave a clean app |
Quick start
nexra
cd my-app
cd backend && npm install && cd ../frontend && npm install
# Terminal 1
cd backend && npm run dev
# Terminal 2
cd frontend && npm run devInside your project:
nexra g # add modules (employee, product, etc.)
nexra finalize # when done — removes .nexra/ and marker commentsWhat you get
- Auto-generated README at project root,
frontend/README.md, anddocs/API.md+docs/MODULES.md(updated on init, generate, and finalize) - Flat structure:
backend/src/{model,controller,routes}andfrontend/src/{api,components,pages} - Zod + react-hook-form on the frontend; validation in controllers on the backend
- Optional: layouts, reports,
belongsTorelations, dashboard cards, sample seed data - JWT auth starter, toasts, mobile sidebar, API error UI
Philosophy
NEXRA is not an enterprise framework. No services layer, no repositories, no AST magic — just understandable CRUD code you can explain in an exam.
License
MIT
