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

https://github.com/302ai/302_starter

302.AI tool template
https://github.com/302ai/302_starter

Last synced: 3 months ago
JSON representation

302.AI tool template

Awesome Lists containing this project

README

        

#

πŸ€– 302 StarterπŸš€βœ¨

302 Starter is a modern web application starter template based on Next.js 14, integrating the latest frontend tech stack and best practices.

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

![](docs/302_Starter.jpg)

## ✨ About 302.AI ✨
[302.AI](https://302.ai) is a pay-as-you-go AI application platform, bridging the gap between AI capabilities and practical implementation.
1. 🧠 Comprehensive AI capabilities: Incorporates the latest in language, image, audio, and video models from leading AI brands.
2. πŸš€ Advanced application development: We build genuine AI products, not just simple chatbots.
3. πŸ’° No monthly fees: All features are pay-per-use, fully accessible, ensuring low entry barriers with high potential.
4. πŸ›  Powerful admin dashboard: Designed for teams and SMEs - managed by one, used by many.
5. πŸ”— API access for all AI features: All tools are open-source and customizable (in progress).
6. πŸ’‘ Powerful development team: Launching 2-3 new applications weekly with daily product updates. Interested developers are welcome to contact us.

## πŸ“– Project Introduction

This is a feature-rich Next.js starter template that adopts the App Router architecture and integrates multiple practical features such as 302AI authentication, internationalization, theme switching, and form handling. The project is developed using TypeScript, ensuring code type safety and maintainability.

## πŸ“ Project Structure

```
src/
β”œβ”€β”€ actions/ # Server actions
β”œβ”€β”€ api/ # API routes
β”œβ”€β”€ app/ # Next.js app router
β”œβ”€β”€ components/ # React components
β”œβ”€β”€ constants/ # Constants
β”œβ”€β”€ hooks/ # Custom React Hooks
β”œβ”€β”€ i18n/ # Internationalization
β”œβ”€β”€ lib/ # Libraries
β”œβ”€β”€ services/ # Services
β”œβ”€β”€ stores/ # State management
β”œβ”€β”€ styles/ # Styles
└── utils/ # Utilities
```

## πŸ› οΈ Tech Stack

- **Framework**: Next.js 14
- **Language**: TypeScript
- **Styling**: TailwindCSS
- **UI Components**: Radix UI
- **State Management**: Jotai
- **Form Handling**: React Hook Form
- **HTTP Client**: ky
- **i18n**: next-intl
- **Theming**: next-themes
- **Code Standards**: ESLint, Prettier
- **Commit Standards**: Husky, Commitlint

## πŸš€ Installation & Setup

### βš™οΈ Requirements

- Node.js 18.17 or higher
- pnpm 8.0 or higher

### πŸ“₯ Installation Steps

1. Clone the project
```bash
git clone [repository-url]
cd 302-starter
```

2. Install dependencies
```bash
pnpm install
```

3. Configure environment
```bash
cp .env.example .env.local
```
Modify the environment variables in `.env.local` as needed.

4. Start development server
```bash
pnpm dev
```

5. Build for production
```bash
pnpm build
pnpm start
```

## ✨ Key Features

- πŸ” 302AI Authentication
- 🌐 Internationalization
- 🎨 Light/Dark Theme
- πŸ“ Form Validation
- πŸ”’ Type-safe API Calls
- πŸ“¦ Modular Components
- πŸš€ Optimized Build
- πŸ”§ Complete Development Toolchain

## πŸ“ Code Standards

The project uses ESLint and Prettier for code formatting and standards:

- βœ… ESLint: Code quality
- 🎨 Prettier: Code formatting
- πŸ”„ Husky: Git hooks
- πŸ“ Commitlint: Commit message standards

Run code check:
```bash
pnpm lint
```

## 🀝 Contributing

1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

### πŸ“ Commit Convention

The project follows [Conventional Commits](https://www.conventionalcommits.org/), with the following format:

```
type(scope): description

[optional body]

[optional footer]
```

Common types:
- ✨ feat: New features
- πŸ› fix: Bug fixes
- πŸ“š docs: Documentation
- πŸ’„ style: Code style
- ♻️ refactor: Code refactoring
- βœ… test: Testing
- πŸ”§ chore: Build process or tools

## ❓ FAQ

### Q: How to add new language support?
A: Add translation files in the `messages` directory and configure in `constants/values.ts`.

### Q: How to customize themes?
A: Modify theme configuration in `tailwind.config.ts`.

## πŸ’¬ Support

- πŸ› Submit Issues
- πŸ“§ Contact Maintenance Team

## πŸ“„ License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.