This is a demo application that uses the Symfony UX library to build a clone of ChatGPT. We use the OpenAI API to generate the responses and MongoDB to store the conversations.
This is a weekend project, so don't expect too much. The code is not production-ready and the UX is not perfect. I would like to improve it in the future to demonstrate the power of Symfony UX and Doctrine ODM.
If you want to try it, you need to create an account on OpenAI and set the OPENAI_API_KEY
.
Contributions are welcome to improve the code and the UX.
Clone the repository and install the dependencies:
$ git clone https://github.com/GromNaN/symfony-openai-ux.git
$ cd symfony-openai-ux
$ composer install
Start the MongoDB server or create a free MongoDB Atlas cluster
and set the MONGODB_URI
environment variable in the .env.local
file.
$ docker-compose up -d
Initialize the database:
$ php bin/console doctrine:mongodb:schema:create
Build the assets:
$ npm install
$ npm run dev
Start the web server:
$ symfony serve
This project is licensed under the MIT License - see the LICENSE file for details.