https://github.com/daguttt/ror-chat
AI Chat using OpenAI API
https://github.com/daguttt/ror-chat
llms openai ruby ruby-on-rails
Last synced: 2 months ago
JSON representation
AI Chat using OpenAI API
- Host: GitHub
- URL: https://github.com/daguttt/ror-chat
- Owner: daguttt
- Created: 2024-12-03T13:05:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T18:02:14.000Z (over 1 year ago)
- Last Synced: 2025-02-02T01:27:23.133Z (over 1 year ago)
- Topics: llms, openai, ruby, ruby-on-rails
- Language: Ruby
- Homepage:
- Size: 77.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RoRChat
AI Chat-like app using OpenAI API and Ruby on Rails
## Repository
[RoRChat Github Repository](https://github.com/daguttt/ror-chat)
## Developing
### Getting Started
#### Prequisites
- Node.js
- **pnpm**: Fast node package manager
```bash
npm i -g pnpm # To install it globally on your machine
```
- Ruby (Check out the project version in [`.ruby-version`](.ruby-version))
#### 1. Environment variables
Create a `.env` file and populate it with the content of `.env.erb` file.
Environment variables include:
1. Database Credentials.
> [!NOTE]
> Keep the value of the `DATABASE_NAME` as is. It's not used in development but required to run the project
2. Emails Credentials (SendGrid) and setup.
3. OpenAI API and setup
#### 2. Install dependencies
Install gems
```bash
bundle i
```
Install [FlyonUI](https://flyonui.com/docs/getting-started/quick-start/) Tailwind plugin
```bash
pnpm i
```
#### 3. Database setup
1. Create database `rails db:migrate`.
2. Run migrations `rails db:migrate`.