https://github.com/iamthiagoo/openai-olw
{{ Project in Laravel that uses the OpenAi API to assemble graphs querying a PostgreSQL database }}
https://github.com/iamthiagoo/openai-olw
laravel openai-api postgresql tailwind
Last synced: 11 months ago
JSON representation
{{ Project in Laravel that uses the OpenAi API to assemble graphs querying a PostgreSQL database }}
- Host: GitHub
- URL: https://github.com/iamthiagoo/openai-olw
- Owner: iamThiagoo
- Created: 2023-02-21T02:45:21.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T04:29:26.000Z (over 3 years ago)
- Last Synced: 2025-04-05T01:41:42.870Z (about 1 year ago)
- Topics: laravel, openai-api, postgresql, tailwind
- Language: PHP
- Homepage:
- Size: 128 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How do I run this project?
- There are a few ways you can run this project on your machine (through containers using Docker/Podman or having the resources already installed). In this tutorial I'm going to take the simplest path to explain that you already have the resources installed. They are: `` Laravel, PostgreSQL and Node ``;
- For the application to run it is necessary to have an active OpenAi API key, you can create an account through `` https://beta.openai.com/signup ``, with the created account and API key in hand we can follow to the next step;
- With everything installed and configured, run the command in your terminal: `` git clone https://github.com/iamThiagoo/Project-OLW-OpenAi.git `` and go to the root of the project;
- Go to your `` .env.example `` file and rename it to `` .env `` and define the OPENAI_API_KEY field with your API key
- Run the command: `` composer install `` to install the project dependencies
- Run the migrations with the seeders with the command: `` php artisan migrate `` and `` php artisan db:seed `` to populate your database
- Run the command: `` npm install `` and then ``php artisan serve && npm run dev `` to run the project
- Accessing the project, you will see the default Laravel screen, create an account and you will be redirected to the project dashboard. At this point, create a question for the artificial intelligence like "Generate a graph of last year's sales" and it will answer you 🙂
- ** Be aware that your artificial intelligence may return inconsistent results **
Credits to [Beer and Code](https://github.com/beerandcodeteam) to show this great project ❤️