This is a React application that guides users through the Design Thinking process, using a chatbot powered by Google's Gemini API to simulate user interviews and testing.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js and npm (or yarn)
- A Firebase project
- A Gemini API key
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd dt-chatbot -
Install the dependencies:
npm install
-
Create a
.envfile in the root of the project and add the following environment variables:REACT_APP_FIREBASE_CONFIG={"apiKey":"...","authDomain":"...","projectId":"...","storageBucket":"...","messagingSenderId":"...","appId":"..."} REACT_APP_GEMINI_API_KEY=your_gemini_api_keyReplace the values with your actual Firebase project configuration and Gemini API key.
-
Start the development server:
npm start
The application will be available at
http://localhost:3000.
To create a production build, run:
npm run buildThis will create a build folder with the optimized and minified files.
This application is ready to be deployed to Vercel.
- Push your code to a GitHub repository.
- Create a new project on Vercel and import your GitHub repository.
- Vercel should automatically detect that this is a Create React App project and configure the build settings.
- In the project settings on Vercel, add the following environment variables:
REACT_APP_FIREBASE_CONFIG: Your Firebase configuration as a JSON string.REACT_APP_GEMINI_API_KEY: Your Gemini API key.
- Deploy the application.
Vercel will automatically build and deploy your application. Each time you push a change to your GitHub repository, Vercel will trigger a new deployment.