A modern, responsive frontend application for Chat AI, built with React, TypeScript, and Tailwind CSS.
- User authentication and authorization
- Real-time chat interface
- System prompt management
- Responsive design
- Admin dashboard
- React
- TypeScript
- Vite
- Tailwind CSS
- Zustand
- React Router
- Axios
- React Query
chat-ai-front/
├── src/ # Source code
│ ├── assets/ # Static assets
│ ├── components/ # React components
│ ├── backend/ # API integration
│ ├── lib/ # Third-party libraries
│ ├── store/ # Zustand store
│ ├── utils/ # Utility functions
│ ├── App.tsx # Main application component
│ └── main.tsx # Application entry point
├── public/ # Public assets
├── .env # Environment variables
├── package.json # Project dependencies
├── tsconfig.json # TypeScript configuration
├── vite.config.ts # Vite configuration
├── tailwind.config.js # Tailwind CSS configuration
└── README.md # Project documentation
- Clone the repository:
git clone https://github.com/Abula28/chat-ai-front
cd chat-ai-front- Install dependencies:
npm install- Create a
.envfile in the root directory with the following variables:
VITE_API_URL=your_backend_api_url- Start the development server:
npm run dev| Variable | Description | Required |
|---|---|---|
| VITE_API_URL | Backend API URL | Yes |
- react: ^19.0.0
- react-dom: ^19.0.0
- @tanstack/react-query: ^5.74.3
- axios: ^1.8.4
- date-fns: ^4.1.0
- framer-motion: ^12.7.3
- react-icons: ^5.5.0
- react-markdown: ^10.1.0
- react-router: ^7.4.1
- react-toastify: ^11.0.5
- zustand: ^5.0.3
- typescript: ~5.7.2
- @types/react: ^19.0.10
- @types/react-dom: ^19.0.4
- vite: ^6.2.0
- @vitejs/plugin-react: ^4.3.4
- tailwindcss: ^3.4.1
- postcss: ^8.4.35
- autoprefixer: ^10.4.17
- eslint: ^9.21.0
- @eslint/js: ^9.21.0
- eslint-plugin-react-hooks: ^5.1.0
- eslint-plugin-react-refresh: ^0.4.19
- prettier: ^3.5.3
- prettier-plugin-tailwindcss: ^0.6.11
- @tanstack/eslint-plugin-query: ^5.73.3
- typescript-eslint: ^8.24.1
- globals: ^15.15.0
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run lint- Run ESLintnpm run format- Format code with Prettier
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request