This installation guide explain the prerequisites and installation steps to install Smart Energy Monitoring Application on your devices.
Software to Install
- Node.js (Version >= 19.6.0) Download
- JDK (Version >= 12.1.0) Download
- Android Studio (with Android SDK, Android SDK Platform, Android Virtual Device) Download | Guide
- WampServer Download
Software to Register
- Gmail Account with App Password for sending verification email. Guide
- Create Firebase Android App for push notification. Guide
- Create Firebase Web App for realtime database. Guide
- Clone this repository.
app
- Go to
appfolder and execute commandnpm i - Go to
app/android/appfolder and insert your Firebase Android App Configuration File namedgoogle-services.json(Configuration File can get when complete prerequisite No.2)
server
- Go to
serverfolder and execute commandnpm i - Go to
serverfolder and modify the Firebase Web App configuration to your own in filekey2.example.json(Configuration info can get when complete prerequisite No.3) - Rename
key2.example.jsontokey2.json - Go to
serverfolder and modify the default email address, email password to your own in fileconfig.example.js - Go to
serverfolder and modify the default database information to your own in fileconfig.example.js - Go to
serverfolder and modify the default Firebase URL to your own in fileconfig.example.js - Rename
config.example.jstoconfig.js - Launch WampServer and import
smart_energy_monitoring.sqlto your phpmyadmin - Launch Firebase Console and import
socket-real-time-data.jsonto your realtime database
- Go to
appfolder and execute commandnpm run start - Go to
appfolder and execute commandnpx react-native run-android - You will see the application installed in your emulator or physical device after completion.
- Go to
serverfolder and execute commandnpm run dev - You may start to use the application.