https://github.com/jonghyo/roo-twitter
https://github.com/jonghyo/roo-twitter
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonghyo/roo-twitter
- Owner: jonghyo
- License: apache-2.0
- Created: 2025-02-25T14:48:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-28T02:04:46.000Z (about 1 year ago)
- Last Synced: 2025-04-28T03:21:59.216Z (about 1 year ago)
- Language: TypeScript
- Size: 2.09 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Next.js Template for RooCode AI Development [](https://github.com/jonghyo/nextjs-roocode-template/actions/workflows/ci.yml)
This is a specialized Next.js template designed for AI-powered code generation using RooCode. It includes comprehensive configuration files and development rules to maximize the effectiveness of AI-assisted development.
## ๐ค RooCode Integration
This template comes pre-configured with essential files for RooCode AI development:
- `.clinerules` - Defines technical stack, development workflows, and coding standards for AI
- `.roomodes` - Configures custom AI modes for different development tasks
- Pre-configured development workflows optimized for AI collaboration
- Automated code quality checks and formatting rules that align with AI-generated code
## Features
- ๐ฏ Optimized for AI-assisted development with RooCode
- ๐ [Next.js](https://nextjs.org/) with App Router for robust routing and server-side rendering
- ๐ [TypeScript](https://www.typescriptlang.org/) for type safety
- ๐จ [shadcn/ui](https://ui.shadcn.com/) + [Tailwind CSS](https://tailwindcss.com/) for beautiful, customizable UI components
- ๐ฆ [Zustand](https://github.com/pmndrs/zustand) for state management
- ๐งช [Vitest](https://vitest.dev/) + [React Testing Library](https://testing-library.com/docs/react-testing-library/intro/) for testing
- ๐ [Storybook](https://storybook.js.org/) for component documentation
- โจ [ESLint](https://eslint.org/) and [Prettier](https://prettier.io/) for code quality
- ๐ Pre-commit hooks with [lefthook](https://github.com/evilmartians/lefthook)
- ๐ ๏ธ Additional tools and libraries:
- [Zod](https://zod.dev/) for schema validation
- [React Hook Form](https://react-hook-form.com/) for form management
- Day.js for date handling
- NextAuth.js for authentication
- [Pino](https://github.com/pinojs/pino) for logging
- MSW for API mocking
- Playwright for E2E testing
## AI Development Configuration
### .clinerules
The `.clinerules` file defines:
- Technical stack specifications
- Development workflow phases
- Coding standards and best practices
- Testing requirements
- Security guidelines
### .roomodes
Custom AI modes for different development tasks:
- PM Mode: Project management and requirements definition
- Architect Mode: System design and architecture planning
- Code Mode: Implementation and testing
- Debug Mode: Problem diagnosis and resolution
## Getting Started
### Prerequisites
- Node.js (LTS version)
- npm
- RooCode extension installed in VS Code
### Installation
1. Clone the repository:
```bash
git clone
cd nextjs-roocode-template
```
2. Install dependencies:
```bash
npm ci
```
3. Copy the environment file:
```bash
cp .env.example .env
```
4. Start the development server:
```bash
npm run dev
```
Visit [http://localhost:3000](http://localhost:3000) to see your application.
## Available Scripts
- `npm run dev` - Start development server
- `npm run build` - Build for production
- `npm run start` - Start production server
- `npm run lint` - Run ESLint
- `npm run format` - Format code with Prettier
- `npm test` - Run tests with Vitest
- `npm run test:coverage` - Generate test coverage report
- `npm run storybook` - Start Storybook development server
- `npm run tsc` - Check TypeScript types
## Project Structure
```bash
src/
โโโ __mocks__/ # Mock definitions
โโโ __tests__/ # Test files
โโโ app/ # Next.js App Router files
โโโ components/ # React components
โ โโโ features/ # Feature-specific components
โ โโโ layout/ # Layout components
โ โโโ ui/ # Base UI components
โโโ env/ # Environment variables definition for t3-env
โโโ lib/ # Utility functions and shared logic
```
## Development Guidelines
- Follow the development workflow defined in `.clinerules`
- Utilize appropriate AI modes for different development tasks
- Follow the TypeScript coding standards
- Write comprehensive tests for new features
- Update Storybook documentation for UI components
- Ensure ESLint and Prettier rules are followed
- Use shadcn/ui components when possible
- Follow the commit message convention
## Contributing
1. Create a feature branch from `main`
2. Make your changes following the AI development guidelines
3. Run tests and ensure all checks pass
4. Submit a pull request to `main`
## License
This project is licensed under the Apache-2.0 License - see the [LICENSE](LICENSE) file for details.