This app is a demo for managing a ToDo list with Ruby on Rails, using Hotwire (Turbo) as a driver for reactivity in the UI/UX.
- Clone this repo:
git clone [email protected]:CharlieIGG/hotwire_test.git
- Set up and run the application (see below)
- Enjoy
This is NOT recommended. This application is fully dockerized, and therefore the Docker approach (see below) is preferred.
You will need the following Pre-Requisites:
- Ruby 2.6.X or higher
- Rails 6.1.3
- PostgresSQL
Follow the standard approach for installing a Rails application using bundle install
, rails db:create
, rails db:migrate
.
Finally start your Rails server with rails s
You will need the following Pre-Requisites:
- Docker Desktop
All you need to do is run docker compose up
, which will automatically download all dependencies, start all necessary services, and setup the whole project for you (might take a couple of minutes).
Alternatively if you want to attach and have TTY on the main (Puma) HTTP server, you can run docker compose run --service-ports web
, where web
is the main Rails server service.
To log into the Rails console, you can always do docker compose run web rails c
, or to do other commands (such as rake tasks) inside the container simply do docker compose run web bash
.