An open API service indexing awesome lists of open source software.

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

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`.