https://github.com/flaver12/juventus_schule_chat_bot
Little Chatbot done for school, with the OpenAI api
https://github.com/flaver12/juventus_schule_chat_bot
Last synced: 3 months ago
JSON representation
Little Chatbot done for school, with the OpenAI api
- Host: GitHub
- URL: https://github.com/flaver12/juventus_schule_chat_bot
- Owner: flaver12
- Created: 2023-06-23T15:58:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T17:49:42.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T08:45:40.252Z (5 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fifa chatbot
## Perquisite
* Docker installed locale (optional, only used for redis)
* Python3
* [OpenAI Token](https://platform.openai.com/account/api-keys)
* Node v18# How to start
Go into the server folder and rename the `.env.dist` to `.env` then update the redis settings, so they will fit your local environment.
Also add your `OpenAI Token` there.
Install all the needed python dependencies: `requirements.txt` is provided.
You can use the provided `docker-compose.yaml` to start up redis.
## Start the server
Make sure your redis is running. Then open a Terminal and navigate to the `server` folder. Then run this command: `python3 app.py`## Start the client
**Important** if you have configured the server to not run on `127.0.0.1` please make sure to update this line in the `App.tsx`: `socket = io('http://127.0.0.1:5000');`, this is for the `socket.io` connection.
Then open a Terminal and navigate to the `fifa-client` folder.
Then run this commands:
```
yarn install
yarn dev
```
This will start the client on `http://localhost:3000`