dev-magic is an arcane CLI spell that conjures the bones of your application—frontend and backend—ready to harness the powers of React and Node.js. With a single incantation, it weaves together optimal, scalable structures imbued with legendary features: Redux, Axios, Tailwind, Socket.IO, Redis, Kafka, Prisma, Swagger, and GraphQL. Perfect for developers seeking an enchanted kickstart.
- Frontend Creation Magic (React): Summons a basic React application from the void.
- Backend Creation Magic (Node.js): Calls forth a Node.js backend with Express.
- Feature Conjurations:
- Redux for spellbinding state control.
- Axios for mystical HTTP requests.
- TailwindCSS for woven styling.
- Socket.IO for real-time communication.
- Redis for caching and enchanted messaging.
- Kafka for seamless event streaming.
- Prisma for database ORM magic.
- Swagger for clarity in API documentation.
- GraphQL for powerful API architecture.
To install the spellbook globally:
npm install -g dev-magicOR wield it directly with npx:
npm create dev-magicNow, the magic command awaits your conjuration for new creations or added spells.
Invoke the spell to conjure a new React frontend:
dev-magic frontendWith this invocation, summon a backend in Node.js:
dev-magic backendEnhance your project with potent spells by simply invoking:
dev-magic add <spell>For example:
-
Summon Redux for state sorcery:
dev-magic add redux
-
Summon Axios for enchanted HTTP requests:
dev-magic add axios
-
Enchant with TailwindCSS for visual flourish:
dev-magic add tailwind
-
Summon Socket.IO for real-time communication magic:
dev-magic add socket-server
-
Summon Redis for persistent caching:
dev-magic add redis-server
-
Summon Kafka for message streams:
dev-magic add kafka-server
-
Summon Prisma for powerful ORM:
dev-magic add prisma
-
Summon Swagger for clarity in API incantations:
dev-magic add swagger-api-doc
-
Summon GraphQL for API mastery:
dev-magic add graphql-server
dev-magic frontend: Summons a new React (frontend) application.dev-magic backend: Conjures a new Node.js (backend) application.dev-magic add <spell>: Adds enchanted features to your project.
| Spell | Effect |
|---|---|
| redux | Adds Redux for state magic |
| axios | Adds Axios for HTTP requests |
| tailwind | Adds TailwindCSS for styling |
| socket-server | Adds Socket.IO for live spells |
| redis-server | Adds Redis for caching/data |
| kafka-server | Adds Kafka for message flows |
| prisma | Adds Prisma ORM for databases |
| swagger-api-doc | Adds Swagger for API clarity |
| graphql-server | Adds GraphQL for API wizardry |
Use --help to uncover the mysteries of available commands:
dev-magic --helpYour magical contributions are welcomed! To contribute, open a portal with a pull request or issue on our GitHub repository.
This spellbook is open for all under the MIT License - see the LICENSE file for details.