Welcome to Namaste React! A custom CLI tool to create a React project with a specific structure, tailored to your needs. Simplify your React project setup with just one command! 🎉
- 🚀 Quick Setup: Create React projects with ease and speed.
- 🎨 Customizable Templates: Choose between JavaScript or TypeScript, and CSS or Tailwind CSS.
- 🛠️ Flexible Project Structure: Get started with a predefined structure that suits your development needs.
- 🧑💻 User-Friendly Prompts: Simple and intuitive prompts to guide you through the setup process.
To get started with Namaste React, you can run the package using npx
:
npx namaste-react <project-name>
-
Run the Command: Use
npx namaste-react <project-name>
. -
Answer Prompts:
- Choose your preferred JavaScript language: JavaScript or TypeScript.
- Select your CSS framework: Default CSS or Tailwind CSS.
- Project Creation: Your project will be created with the selected options, ready for development.
npx namaste-react my-new-app
Then follow the prompts to customize your new React project! 🛠️
The project will be created with a structure based on your choices. Here's an overview:
my-new-app/
├── src/ # Main source code
│ ├── components/ # Reusable components
│ ├── styles.css # CSS/Tailwind styles
│ ├── index.js # React entry point
│ └── index.html # Main HTML file
│
├── package.json # Project configuration
└── README.md # Project documentation
Namaste React offers customizable templates based on your choices:
- JavaScript + Default CSS
- JavaScript + Tailwind CSS
- TypeScript + Default CSS
- TypeScript + Tailwind CSS
These templates are stored within the package and copied over during project creation.
- Start your project: Navigate into your project directory and run:
npm install
npm start
- Initialize Git (optional): The CLI automatically initializes a Git repository for you!
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated!
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
-
Prahlad Inala - Your LinkedIn - hello@prahladinala.in
-
Project Link: GitHub Repository