Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/302ai/302-dev-kit
The starting template for all our AI Apps
https://github.com/302ai/302-dev-kit
nextjs radix-ui react tailwindcss zustand
Last synced: 24 days ago
JSON representation
The starting template for all our AI Apps
- Host: GitHub
- URL: https://github.com/302ai/302-dev-kit
- Owner: 302ai
- Created: 2024-09-23T07:39:55.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-12-05T09:18:56.000Z (29 days ago)
- Last Synced: 2024-12-05T10:23:01.538Z (29 days ago)
- Topics: nextjs, radix-ui, react, tailwindcss, zustand
- Language: TypeScript
- Homepage: https://302.ai
- Size: 1.02 MB
- Stars: 35
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#
π€ 302-Dev-Kitπβ¨
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.![](public//images/global//DEV-KIT.png)
## Features
- **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.## Directory Structure
```plaintext
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
```## Installation
1. Clone the repository:
```bash
git clone https://github.com/302ai/302-Dev-Kit
```2. Install dependencies:
```bash
cd 302-Dev-Kit
npm install
```## Script Commands
- `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.## Dependencies
### Production Dependencies
- `@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-query`
- `ahooks`
- `class-variance-authority`
- `clsx`
- `geist`
- `jiti`
- `ky`
- `ll`
- `lucide-react`
- `mitt`
- `next`
- `next-themes`
- `react`
- `react-dom`
- `react-hook-form`
- `tailwind-merge`
- `tailwindcss-animate`
- `zod`
- `zustand`### Development Dependencies
- `@trivago/prettier-plugin-sort-imports`
- `@types/eslint`
- `@types/node`
- `@types/react`
- `@types/react-dom`
- `@typescript-eslint/eslint-plugin`
- `@typescript-eslint/parser`
- `eslint`
- `eslint-config-next`
- `eslint-config-prettier`
- `eslint-plugin-check-file`
- `eslint-plugin-n`
- `eslint-plugin-tailwindcss`
- `postcss`
- `prettier`
- `prettier-plugin-tailwindcss`
- `tailwindcss`
- `typescript`## Development Guide
### Start Development Environment
```bash
npm run dev
```### Build Production Environment
```bash
npm run build
```## Code Style and Standards
Use ESLint for code checking and Prettier for code formatting. Please ensure your code passes checks and formatting before submitting.
```bash
npm run lint
npm run format
```## Internationalization
The project supports multiple languages, currently including Chinese, English, and Japanese. Language files are stored in the `src/locales` directory.
## License
This project is licensed under the MIT License.