Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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.

About

This is a personal Command Line Interface (CLI) tool for quickly setting up React projects with a preferred folder structure and configurations. It's designed for personal use and to streamline the process of starting new React projects.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages