Dev Magic: Summon the Spell of Creation
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.
Enchanted Powers
- 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.
Summoning the Magic
To install the spellbook globally:
npm install -g dev-magic
OR wield it directly with npx:
npm create dev-magic
Now, the magic command awaits your conjuration for new creations or added spells.
Incantations & Invocations
To Forge a New Frontend (React)
Invoke the spell to conjure a new React frontend:
dev-magic frontend
To Forge a New Backend (Node.js)
With this invocation, summon a backend in Node.js:
dev-magic backend
Add Features to Your Spellbook
Enhance your project with potent spells by simply invoking:
dev-magic add <spell>
For example:
Summon Redux for state sorcery:
dev-magic add reduxSummon Axios for enchanted HTTP requests:
dev-magic add axiosEnchant with TailwindCSS for visual flourish:
dev-magic add tailwindSummon Socket.IO for real-time communication magic:
dev-magic add socket-serverSummon Redis for persistent caching:
dev-magic add redis-serverSummon Kafka for message streams:
dev-magic add kafka-serverSummon Prisma for powerful ORM:
dev-magic add prismaSummon Swagger for clarity in API incantations:
dev-magic add swagger-api-docSummon GraphQL for API mastery:
dev-magic add graphql-server
Command Grimoire
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.
Enchanted List of Features
| 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 |
Seek Guidance
Use --help to uncover the mysteries of available commands:
dev-magic --help
Contribution to the Spellbook
Your magical contributions are welcomed! To contribute, open a portal with a pull request or issue on our GitHub repository.
License
This spellbook is open for all under the MIT License - see the LICENSE file for details.