Experimental Rails app using AI and LLM services
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
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 ininstall-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)
- 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 gemforeman
)- or using more "classic" gem Foreman
gem install foreman
+foreman start -f Procfile.dev
- Using ViewComponents lib https://github.com/baoagency/polaris_view_components/
- Preview Storybook with existing components https://polarisviewcomponents.org/