Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.

δΈ­ζ–‡ | English | ζ—₯本θͺž

![](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.