0.0.3 • Published 11 months ago

create-react-next-app-latest v0.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

React/Next.js Project Generator CLI

This CLI tool helps you quickly set up a new React or Next.js project based on your preferences. It guides you through a series of prompts to customize your project with options like Tailwind CSS, ESLint, state management, folder structure, and more. This tool is perfect for developers who want a streamlined and consistent setup process.

version :: 0.0.3

Features

  • React or Next.js: Choose between creating a React or Next.js project based on your needs.
  • ESLint and Prettier Integration: Option to include ESLint and Prettier for maintaining code quality and formatting.
  • Tailwind CSS: Easily integrate Tailwind CSS into your project for utility-first CSS styling.
  • State Management: Choose your preferred state management library (e.g., Redux, MobX).
  • Formik and Yup: Option to install Formik and Yup for form handling and validation.
  • Axios: Install Axios for making HTTP requests with ease.
  • Notification Component: Add a notification component using the Context API to display success and error messages.
  • Authentication Provider: Option to add an authentication provider context for handling user authentication.
  • Customizable Folder Structure: Choose a default folder structure for better project organization.
  • Public and Private Routes: Add functionality for managing public and private routes in your application.
  • Customizable AppBar: Set up a default AppBar with options to include a user avatar and custom page links.

Installation

To install this CLI tool globally, run the following command:

Option 1

npm install -g create-react-next-app-latest

Option 2

npx create-react-next-app-latest

Project Setup Prompts

When using this CLI tool, you'll be prompted to make the following choices for your project setup:

  1. Project Framework: Choose between React or Next.js
  2. Project Name: Enter your project's name
  3. Language: Select JavaScript or TypeScript
  4. UI Framework: Choose between Material UI, Tailwind CSS, or none
  5. ESLint: Option to include ESLint for code linting
  6. Prettier: Option to add Prettier for code formatting
  7. State Management: Choose a state management library (e.g., Redux,React-queary)
  8. Formik & Yup: Option to install Formik and Yup for form handling and validation
  9. Axios: Option to install Axios for HTTP requests
  10. Notification Component: Option to add a notification component using Context API
  11. Authentication Provider: Option to add an authentication provider context
  12. Default Folder Structure: Option to add a default React app folder structure
  13. App Router: Option to use App Router in Next.js projects
  14. src/ Directory: Option to organize files within a src/ directory
  15. Import Alias: Set a custom import alias (default: @/*)
  16. Package Manager: Choose between npm and yarn
  17. AppBar: Option to add a default AppBar with customizable name and user avatar
  18. Public and Private Routes: Option to add functionality for public and private routes
  19. Login Component: Option to add a login component to your project

These prompts will guide you through configuring your new project according to your preferences and requirements.

Contributing

Contributions are welcome! If you'd like to improve this CLI tool or add new features, feel free to submit a pull request. Make sure to follow the code style guidelines and include tests for any new functionality.