This project is a modern web application built using a monorepo structure, featuring both a frontend and a backend application.
- Frontend: React with Vite
- Backend: Express.js with SQLite and Drizzle ORM
- Authentication: JWT and refresh tokens
- Real-time Communication: Socket.io for live chat messages
-
Authentication:
- Secure user login and registration using JWT.
- Refresh token mechanism for session management.
-
Chat Functionality:
- Real-time messaging with live updates using Socket.io.
- Integration with AI models for generating responses.
-
Feedback System:
- Users can provide feedback on AI model responses.
- Feedback statistics are available for analysis.
-
Statistics Dashboard:
- Visual representation of feedback data.
- Summary of user interactions with AI models.
-
Responsive Design:
- Optimized for both desktop and mobile devices.
-
Clone the Repository:
git clone <your-repo-url> cd <your-repo-name> yarn install
-
Running the Applications:
- Frontend:
yarn dev:web - Backend:
yarn dev:server
- Frontend:
-
Environment Variables:
- Configure
.envfiles for both frontend and backend applications.
- Configure
- Node.js: Ensure Node.js (>=18) is installed.
- Yarn: Uses Yarn workspaces for dependency management.
- Database: SQLite is used for simplicity and ease of setup.