This project demonstrates a React application built with Vite, TypeScript, DevExtreme components, and OpenAI integration.
- Interactive DataGrid displaying user information
- AI-powered chat interface with typing indicators
- OpenAI GPT-4.1
- Environment-based configuration
- HMR (Hot Module Replacement) support
-
Install dependencies:
npm install
-
Configure environment variables:
- Copy
.envto.env.local
- Copy
-
Start the development server:
npm run dev
Displays a table of user information with sortable columns.
Provides an interactive chat interface with:
- Real-time message updates
- Typing indicators
- AI-powered responses using OpenAI's GPT model
- User authentication and identification
Never commit your actual OpenAI API key to version control. Always use environment variables and keep sensitive data in .env.local (which should be in your .gitignore).
This project includes a robust ESLint configuration. For production applications, you can enable type-aware lint rules:
export default tseslint.config({
extends: [
...tseslint.configs.recommendedTypeChecked,
// Or for stricter rules:
...tseslint.configs.strictTypeChecked,
// Optional stylistic rules:
...tseslint.configs.stylisticTypeChecked,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})You can also add React-specific lint rules with eslint-plugin-react-x and eslint-plugin-react-dom.