Skip to content

iJackUA/RubyOnRails-AI-Hub

Repository files navigation

Ruby on Rails AI Hub

Experimental Rails app using AI and LLM services

Run with Docker-Compose

Prerequisite: Docker and Docker Compose installed on the host machine.

  • Clone .env file from .env.example, check it has has correct ENV and secrets values
  • docker-compose build
  • docker-compose up
  • docker-compose run --rm runner ./bin/setup

Run with VSCode Remote Container (recommended way)

Prerequisite: Docker and Docker Compose installed on the host machine It is recommended to use VSCode with Remote - Containers.

  • Clone .env file from .env.example, check it has has correct ENV and secrets values
  • Run command "Remote-Containers: Open Folder in Container" in VSCode
  • It opens IDE window inside the "web" container
  • All settings are in .devcontainer folder, check what additions to Dockerfile are installed in install-features.sh
  • Now you can work inside the container as if you were just using Rails and Ruby on your local machine! 🔥
  • Run setup script: ./bin/setup
  • Run overmind s. Or start Rails app using one of the way described in "Run in Local Dev Mode" (OVERMIND_PROCFILE specified in container ENV, so no need to specify -f Procfile.dev explicitly)

Run on dev machine without any of these fancy containers...

  • Setup PostgreSQL + pg_vector extension
  • Anyway take a look in docker-compose.yml to see are there other dependencies you need to have :)
  • Clone .env file from .env.example, check it has has correct ENV and secrets values
  • ./bin/setup
  • overmind s -f Procfile.dev - run Overmind (more advanced and stable than gem foreman)
  • or using more "classic" gem Foreman gem install foreman + foreman start -f Procfile.dev

UI ideas

About

Experimental project with RoR and LangChain/LLM APIs/Vector database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published