Skip to content

sh3rqxs/plant-buddy

Repository files navigation

Plant Buddy 🪴

A simple desktop app inspired by Tamagotchi toys, where you have to keep a tiny virtual plant alive. This project was built with HTML, CSS, JavaScript, and Electron.

Demo

Features

  • Water meter mechanic 💧
    A visible water bar that drains over real time
  • Dynamic moods 😄
    The plant shifts between four states based on its water level: thriving, okay, thirsty, and wilted
  • Care reminder 🔔
    A little message below your plant that lets you know how it's feeling

How To Play

The app starts fresh every time you open it. Your plant begins at 100% level and the water bar will slowly drain over time.

  • Click “Water” to refill the bar by +25%. You can water again every 10 seconds.
  • Watch the plant's mood. It updates as the water level changes and warns you when the plant is thirsty.
  • If the bar hits 0% the plant wilts and the session ends. Click "Restart" to start over.

Tutorial Document

I wrote a markdown doc explaining how to build your own Plant Buddy step-by-step from scratch as part of my submission for Codédex's Project Tutorial Challenge.

What you'll learn:

  • Set up an Electron project from scratch
  • Build a custom window
  • Render and style a desktop app with HTML & CSS
  • Bring it to life with JavaScript

Everything you need is already in this repo, so you can follow along and build your own version!

Design File

Figma design file for this project: Plant Buddy 🪴

Getting Started

Want to test the finished app first? Here's how to run it:

1. Clone the repository

git clone https://github.com/sh3rqxs/plant-buddy.git
cd plant-buddy

2. Install dependencies

Make sure you have Node.js installed on your machine, then run:

npm install

This installs Electron and any other modules required to run the app.

3. Run the app

npm start

This will open Plant Buddy as a desktop application powered by Electron.

Feedback

If you find something confusing or want to suggest improvements, feel free to open an issue or submit a pull request!

Happy coding! :)

About

🪴 A plant buddy desktop app built with Electron

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Contributors