A simple web-based application to help you keep track of your plants and their watering schedules.
Disclaimer: This project is subject to further improvement and possible rookie naivete - any suggestions for improvement are more than welcome!
-
Node.js
withnpm
:On MacOS, you'd probably need to run:
brew install node
This will installs both
Node.js
andnpm
.
-
Clone the repo:
git clone https://github.com/anuunchin/plant-tracker.git cd plant-tracker
-
Install dependencies for the backend:
cd backend npm install
-
Start the server:
cd .. node backend/server.js
This will start the server on http://localhost:3000.
-
Access the frontend:
You can open the local URL in a browser.
plant-tracker/
│
├── backend/
│ ├── controllers/
│ │ └── plantsController.js # Contains logic for managing plant data (add, update, delete, archive)
│ ├── data/
│ │ └── plants.json # JSON file to store plant data
│ ├── routes/
│ │ └── plantsRoutes.js # Defines the API routes for handling plants
│ ├── utils/
│ │ └── fileHelpers.js # Utility functions for reading/writing to plants.json
│ └── server.js # Main entry point to start the Express server
│
├── frontend/
│ ├── index.html # Main HTML file for the user interface
│ ├── main.js # JavaScript file for client-side interactions (add/update plants)
│ └── styles.css # CSS file for styling the UI
│
└── README.md # (you are here)