Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dmarcoux/garden
https://github.com/dmarcoux/garden
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/dmarcoux/garden
- Owner: dmarcoux
- Created: 2022-02-21T20:58:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-15T19:01:22.000Z (over 2 years ago)
- Last Synced: 2024-06-12T18:48:22.997Z (7 months ago)
- Language: Ruby
- Size: 2.84 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Garden
## Development
1. Clone Git repository
2. Run `bin/setup_history_files`
3. With [docker-compose](https://github.com/docker/compose), spin up development environment: `docker-compose up`.
4. Access the Docker container `web_app` with `docker exec -it CONTAINER_ID bash`.
5. Do what you need to do. Some examples are listed below...### Setup the Rails Application
Run `bin/setup`.
### Run the Rails Application
Run `bin/dev`, then access `http://localhost:3000`.
### Run Linters, Tests and Audits
Run `bin/ci`.
### Connect to SQLite Database
Run `sqlite3 db/development.sqlite3`.
### Connect to Web Application, Redis or Another Process Managed by Overmind
Run `bin/overmind connect [process_name]`.
Disconnect from the process window with `Ctrl + b`, then `d`.### Manage JavaScript Dependencies
Run `bin/importmap` to see the available commands.
## Architecture
Class diagram generated with [Mermaid](https://github.com/mermaid-js/mermaid).
```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_blobsclass 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
}
```## Design
Avoid creating global CSS rules by relying solely on the utility-first approach
of Tailwind CSS to create view components whenever there is repetition.