8000 GitHub - loadmill/contact-center-demo: Contact Center Demo App
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

loadmill/contact-center-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loadmill Demo: Contact Center Test Automation

This project shows how Loadmill can automate testing for a contact center workflow. It features two views—one for the customer and one for the support agent.

contact-center

Project Structure

project-root/
├── backend/
│   ├── index.js
│   └── package.json
├── frontend/
│   ├── public/
│   │   └── index.html
│   ├── src/
│   │   ├── App.js
│   │   ├── CustomerChat.js
│   │   └── SupportAgent.js
│   └── package.json
└── package.json

Setup and Running

  1. Clone the Repository

    git clone <repository-url>
    cd project-root
  2. Install Dependencies

    At the project root, run:

    npm install

    This installs both backend and frontend dependencies.

  3. Start the Servers

    Use the dev script to run both servers concurrently:

    npm run dev
    • The backend (Express server) runs on port 3001.
    • The React development server runs on port 3000 with hot reloading.
    • API calls from the React app are forwarded to the backend using the proxy setting in frontend/package.json.
  4. Open the App

    Open your browser and go to http://localhost:3000 to use the app.

Customizing the Company Name

You can change the default company name ("Loadmill") by calling the URL with a query parameter. For example, to set the company to "Acme", visit:

http://localhost:3000/?company=Acme

When the Home page loads, the app saves the company name to localStorage. This value is then used across the customer and support agent views.

Notes

  • The backend uses an in-memory queue for messages. For production, consider a persistent storage solution.
  • Nodemon is used for the backend to auto-restart on changes.
  • The React development server provides live reloading for faster UI development.
  • The company name persists across page reloads by storing it in localStorage.

About

Contact Center Demo App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0