302-Dev-Kit is a Next.js-based Web project aimed at providing a fast and efficient development experience based on the 302.AI API. This project includes basic components, hooks, and utility functions to help developers quickly build production-grade AI tool applications.
- Component-based Development: Clear project structure with well-defined components, including public components, form components, global components, and basic components.
- State Management: Uses Zustand for state management.
- Internationalization Support: Built-in multi-language support (Chinese, English, Japanese).
- Rich Utility Functions: Includes API requests, authentication, event dispatching, and other utility functions.
- Code Standards: Uses ESLint and Prettier for code checking and formatting.
root
├── src
│ ├── app
│ ├── layout // Root layout
│ │── auth // Authentication page
│ │ ├── index // Export module
│ │ ├── _components // Private components
│ ├── (land) // Landing page group
│ │ │── page // Main landing page
│ │ │── _components // Private components
│ ├── components // Public components
│ │ ├── common // Common components
│ │ ├── forms // Form components
│ │ ├── global // Global components
│ │ ├── ui // Basic components
│ ├── constants // Constants
│ │ ├── forms // Form-related constants
│ │ ├── menus // Menu options
│ ├── hooks // Hooks
│ │ ├── auth // Authentication module hooks
│ │ ├── global // Global hooks
│ ├── icons // Icons
│ │ ├── auth // Authentication module icons
│ │ ├── global // Global module icons
│ ├── lib // Utility functions
│ │ ├── api // Request-related utility functions
│ │ ├── mitt // Event dispatching tool
│ │ ├── utils // Other utility sets
│ ├── services // Request functions
│ │ ├── auth // Authentication requests
│ ├── locales // Internationalization
│ │ ├── zh // Chinese
│ │ ├── en // English
│ │ ├── ja // Japanese
│ ├── stores // State management
│ │ ├── slices // Divided module states
│ │ ├── index // Export module
│ ├── styles // Styles
│ │ ├── global // Global styles
│ │ ├── info // Information styles
│ ├── env.ts // Environment variable control
└── package.json
-
Clone the repository:
git clone https://github.com/302ai/302-Dev-Kit
-
Install dependencies:
cd 302-Dev-Kit npm install
npm run build: Build for production environment.npm run dev: Start development environment.npm run lint: Run ESLint for code checking.npm run start: Start production environment.npm run clean: Clean generated build files.npm run check: Check code format.npm run format: Format code.
@hookform/error-message@hookform/resolvers@radix-ui/react-alert-dialog@radix-ui/react-checkbox@radix-ui/react-dialog@radix-ui/react-dropdown-menu@radix-ui/react-icons@radix-ui/react-label@radix-ui/react-slot@radix-ui/react-toast@t3-oss/env-nextjs@tanstack/react-queryahooksclass-variance-authorityclsxgeistjitikylllucide-reactmittnextnext-themesreactreact-domreact-hook-formtailwind-mergetailwindcss-animatezodzustand
@trivago/prettier-plugin-sort-imports@types/eslint@types/node@types/react@types/react-dom@typescript-eslint/eslint-plugin@typescript-eslint/parsereslinteslint-config-nexteslint-config-prettiereslint-plugin-check-fileeslint-plugin-neslint-plugin-tailwindcsspostcssprettierprettier-plugin-tailwindcsstailwindcsstypescript
npm run devnpm run buildUse ESLint for code checking and Prettier for code formatting. Please ensure your code passes checks and formatting before submitting.
npm run lint
npm run formatThe project supports multiple languages, currently including Chinese, English, and Japanese. Language files are stored in the src/locales directory.
This project is licensed under the MIT License.

