Skip to content

Latest commit

History

History
57 lines (38 loc) 路 1.65 KB

README.md

File metadata and controls

57 lines (38 loc) 路 1.65 KB

Draft of ChatGPT clone with OpenAI API, Symfony UX and MongoDB

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.

Screenshots

screenshot

Installation

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

License

This project is licensed under the MIT License - see the LICENSE file for details.