create-react-next-app-latest
v0.0.3
Published
CLI tool to create React and Next.js apps
Downloads
9
Maintainers
Readme
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:
- Project Framework: Choose between React or Next.js
- Project Name: Enter your project's name
- Language: Select JavaScript or TypeScript
- UI Framework: Choose between Material UI, Tailwind CSS, or none
- ESLint: Option to include ESLint for code linting
- Prettier: Option to add Prettier for code formatting
- State Management: Choose a state management library (e.g., Redux,React-queary)
- Formik & Yup: Option to install Formik and Yup for form handling and validation
- Axios: Option to install Axios for HTTP requests
- Notification Component: Option to add a notification component using Context API
- Authentication Provider: Option to add an authentication provider context
- Default Folder Structure: Option to add a default React app folder structure
- App Router: Option to use App Router in Next.js projects
- src/ Directory: Option to organize files within a
src/
directory - Import Alias: Set a custom import alias (default:
@/*
) - Package Manager: Choose between npm and yarn
- AppBar: Option to add a default AppBar with customizable name and user avatar
- Public and Private Routes: Option to add functionality for public and private routes
- 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.