Alice Client is a React-based web application that provides a user interface for interacting with the Alice chatbot. It allows users to log in and engage in conversations with the chatbot, as well as make various API calls.
Follow these instructions to set up and run the Alice Client locally on your development machine.
Before you begin, ensure you have the following prerequisites installed:
-
Clone this repository to your local machine:
git clone https://github.com/your-username/alice-client.git
-
Navigate to the project directory:
cd alice-client
-
Install project dependencies:
npm install
The application relies on environment variables for configuration. Create a .env
file in the project root directory and set the following variables:
REACT_APP_AUTH0_DOMAIN=your-auth0-domain
REACT_APP_AUTH0_CLIENT_ID=your-auth0-client-id
REACT_APP_API_URL=http://127.0.0.1:8000/chatbot
Make sure to replace your-auth0-domain
and your-auth0-client-id
with your Auth0 credentials.
To run the application locally, use the following command:
npm start
The application will start, and you can access it in your web browser at http://localhost:3000
.