This is a simple Ruby app built with Sinatra that will allow you to keep track of what vegetables you want to plant and when.
User have the ability to:
- Create one or more farms/gardens
- Add vegetables to their farms. Vegetables can be assigned to all farms or specific farms.
- Keep track of what month the vegetables need to be planted by specifying the planting season for each vegetable.
- Edit or delete farms and vegetables as needed.
- See the vegetables to plant this month upon logging in.
Localized to English and Japanese. You can try the app out here:
- English: https://veggie-tracker.herokuapp.com/en/
- Japanese: https://veggie-tracker.herokuapp.com/ja/
Future improvements planned:
- Possibly more specific planting seasons, e.g. beginning/middle/end of month and season range.
- Better design
Video walkthough on Youtube: https://www.youtube.com/watch?v=PTRAOBUQE5Q
You can make a request or report a bug by creating an issue. Or write your own code an submit a pull request:
- Fork and clone the repository, following the steps below.
- Create a branch named after the feature or bug. For example:
git checkout -b feature/new-feature
orgit checkout -b bug/bug-fix
. - Write your code and commit changes with an understandable commit message.
- Push to the branch with
git push origin feature/new-feature
. - Create a pull request: Explain the reason for the change, why the code was written the way it was, etc.
- Ruby
- SQLite3
- Fork the repository and clone it.
- Run
bundle install
to install gems (If you don't have bundler, first rungem install bundler
) - Set up the database with
rake db:migrate
. - The app uses the dotenv gem for environment variables (currently only one for the session_secret). Create a
.env
file in the root of the app and addSESSION_SECRET=your_secret
(replace the your_secret with your own secret. Check Sinatra's "Session Secret Generation" section in their Readme for recommendations. - Run
shotgun
to run the app locally athttp://localhost:9393/
. That should be it!
This app has a simple test suite that uses Rspec. Tests can be run with rspec spec
.
Veggie Tracker is available as open source under the terms of the MIT License.