This is a web application built with Next.js and deployed using Firebase.
The Smart Rack WebApp interfaces directly with a Firebase Realtime Database. It enables communication between the user and the ESP32 microcontroller managing the Smart Rack system. The ESP32 continuously monitors the database for updates and responds accordingly, executing predefined actions based on the current system state.
In addition, the ESP32 logs all actions under the /logs/ path in the database, providing a comprehensive activity history and ensuring traceability of all operations.
To be completed — include details such as key directories and their purposes (e.g.,
pages/,components/,lib/, etc.).
To run the Smart Rack WebApp on your local machine, follow these steps:
-
Clone the repository:
git clone https://github.com/your-repo/smart-rack-webapp.git cd smart-rack-webapp -
Install dependencies:
npm install
-
Configure environment variables:
- Create a
.env.localfile in the root directory. - Add your Firebase project configuration values (API key, Auth Domain, etc.).
- Create a
-
Start the development server:
npm run dev
-
Access the app:
- Open your browser and navigate to (http://localhost:3000)