Real-time chat with friends and AI bots for smarter conversations
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
This pet project is a real-time chat application developed for educational purposes. It leverages WebSocket technology to enable instant messaging between users. Moreover, the app integrates OpenAI's API, creating AI-powered chatbots that users can interact with when they want to pass the time or practice conversing.
- Run PostgreSQL database in
backend
directorydocker-compose -f .\compose.dev.yaml --env-file .\.env.docker up -d
- Set the environment variables
export DB_URL= export DB_USERNAME= export DB_PASSWORD= export SPRING_AI_OPENAI_API_KEY=
- Build and run the Spring Boot application in
backend
directory (requires Java 21)./gradlew bootRun
- Install NPM packages in
frontend
directorynpm install
- Enter the backend URL in
frontend/.env
fileVITE_API_BASE_URL=http://localhost:8080 VITE_WS_URL=ws://localhost:8080/ws
- Change git remote url to avoid accidental pushes to base project
git remote set-url origin nuromirzak/cloudmix git remote -v # confirm the changes
- Run the frontend application
npm run dev
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.