Skip to content

zendalona/z.Agent-UI

 
 

Repository files navigation

Zendalona Chatbot UI

This is the frontend for the Zendalona Chatbot application.

Features

  • Chat interface with accessibility options
  • Admin panel for system management
  • Firebase Google authentication
  • Feedback system with user information

Setup

  1. Install dependencies:

    npm install
  2. Create a Firebase project at https://console.firebase.google.com/

  3. Enable Google authentication in your Firebase project

  4. Copy the Firebase configuration values and add them to the .env file:

    VITE_FIREBASE_API_KEY=your-api-key
    VITE_FIREBASE_AUTH_DOMAIN=your-project-id.firebaseapp.com
    VITE_FIREBASE_PROJECT_ID=your-project-id
    VITE_FIREBASE_STORAGE_BUCKET=your-project-id.appspot.com
    VITE_FIREBASE_MESSAGING_SENDER_ID=your-messaging-sender-id
    VITE_FIREBASE_APP_ID=your-app-id
    VITE_FIREBASE_MEASUREMENT_ID=your-measurement-id
    
  5. Update the admin email list in src/contexts/AuthContext.jsx:

    const adminEmails = ['admin@yourdomain.com']; // Add your admin emails here

Development

Run the development server:

npm run dev

Build for production:

npm run build

Deployment

This application can be deployed using Docker. See DEPLOYMENT.md for detailed instructions.

Quick Deployment with Docker

  1. Build and start the application:

    docker-compose up -d
  2. Access the application at http://localhost:8080

Using the Deployment Scripts

Alternatively, you can use the provided shell scripts:

  1. To build and run the application:

    ./run-docker.sh
  2. To stop and remove the application:

    ./stop-docker.sh
  3. To view the application logs:

    ./logs-docker.sh

Authentication

  • Users can login with Google authentication
  • Only authenticated users can submit feedback
  • Only admin users can access the admin panel

Feedback System

  • Feedback is associated with the logged-in user
  • User information (name, email) is stored with feedback
  • Admins can view feedback along with user information

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 95.9%
  • Shell 3.5%
  • Other 0.6%