Architecture and Design Documentation
Make sure to have node.js (v14.17+) and npm (v6.14+) installed. Also make sure to have ESP32 device and Raspberry Pi device and camera. These steps require the downloading of the repository code onto your machine.
- Follow directions listed here
- Plug in RPi Camera to RPi device
- Wire up relay using pin 21 to actuate relay and water solenoid valve
- Clone this repo onto RPi device
git clone https://github.com/naterpotatoers/Smart-Gardening.git
- Switch into iot-rpi directory
- Run the command on RPi device
python3 aws-iot-core.py
- Switch into frontend directory
- Run the command
npm install
- Run the command
npm start
- Switch into backend directory
- Run the command
npm install
- Run the command
npm run build
- Add necessary .env file for reading and writing from the databases (should be included with file already)
- Run the command
npm start
- Switch into Plant API directory
- Run the command
npm install
- Run the command
npm start
Frontend: http://smart-garden-frontend.s3-website-us-west-2.amazonaws.com/
Backend: http://54.190.195.163:5000/
Plant API: http://54.190.195.163:9000/