2.0.0 • Published 9 months ago

dev-magic v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

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 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

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

SpellEffect
reduxAdds Redux for state magic
axiosAdds Axios for HTTP requests
tailwindAdds TailwindCSS for styling
socket-serverAdds Socket.IO for live spells
redis-serverAdds Redis for caching/data
kafka-serverAdds Kafka for message flows
prismaAdds Prisma ORM for databases
swagger-api-docAdds Swagger for API clarity
graphql-serverAdds 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.