Queens ChatBot is a React Native chatbot application using Expo.
- Node.js (v18 or higher)
- npm (v6 or higher) or yarn
- Expo CLI (
npm install expo
)
-
Clone the repository:
git clone https://github.com/violinapopova/queens-chatbot.git cd queens-chat
-
Install dependencies:
npm install
or
yarn
-
Set up the API key:
- Open the Constants.js file.
- Replace the empty string in export const API_KEY = ''; with your API key from Google AI Studio.
-
Start a development server to work on your project by running:
npx expo start
-
Start the project:
npm start
or
yarn
- iOS Users: https://apps.apple.com/app/apple-store/id982107779
- Android Users: https://play.google.com/store/apps/details?id=host.exp.exponent
🖥️ 💻 Interested in testing on a virtual device? You'll need either Android Studio or Xcode installed:
- Download Android Studio: https://developer.android.com/studio/install
- Download Xcode: https://developer.apple.com/xcode/resources/
-
Run on Android:
npm run android
or
yarn android
-
Run on iOS:
npm run ios
or
yarn ios
- App.js: Entry point of the application.
- ChatBot.js: Main chatbot component.
- ChatItem.js: Component for individual chat items.
- Constants.js: Contains the API key.
- assets: Contains images and other assets.
- axios: Promise-based HTTP client for making API requests.
expo
: Framework and platform for universal React applications.expo-speech
: Expo module for text-to-speech functionality.expo-status-bar
: Expo module for controlling the status bar.react
: JavaScript library for building user interfaces.react-native
: Framework for building native apps using React.react-native-vector-icons
: Customizable icons for React Native.
Want to create a new project?
-
npx create-expo-app --template
or
-
npx create-expo-app@latest
🔗 https://docs.expo.dev/more/create-expo/