- Clone Git repository
- Run
bin/setup_history_files - With docker-compose, spin up development environment:
docker-compose up. - Access the Docker container
web_appwithdocker exec -it CONTAINER_ID bash. - Do what you need to do. Some examples are listed below...
Run bin/setup.
Run bin/dev, then access http://localhost:3000.
Run bin/ci.
Run sqlite3 db/development.sqlite3.
Run bin/overmind connect [process_name].
Disconnect from the process window with Ctrl + b, then d.
Run bin/importmap to see the available commands.
Class diagram generated with Mermaid.
classDiagram
Plant "1" --> "0..n" Companion: plant1_id
Plant "1" --> "0..n" Companion: plant2_id
Plant "1" --> "0..n" active_storage_attachments: images
active_storage_attachments "1" --> "1" active_storage_blobs
class Plant {
+bigint id
+string common_name
+string latin_name
+tinyint germination_temperature_minimum
+tinyint germination_temperature_maximum
+tinyint planting_depth
}
class Companion {
+bigint plant1_id
+bigint plant2_id
+enum[good,bad] type
+text reason
}
class active_storage_attachments {
internal from Rails
}
class active_storage_blobs {
internal from Rails
}
Avoid creating global CSS rules by relying solely on the utility-first approach of Tailwind CSS to create view components whenever there is repetition.