PowerTrack is a full-stack web application that helps users track electricity usage, predict how long their units will last, and receive insights to optimize consumption.
Frontend: https://electricity-app-ten.vercel.app
Backend: https://electricity-app-yd3w.onrender.com
- 🔐 User Authentication (JWT-based login & register)
- ⚡ Track electricity units (kWh)
- 📊 Usage logging and history
- 🔮 Predict how many days electricity will last
- 💡 Smart insights and recommendations
- 📈 Usage trend visualization
- 📱 Fully responsive UI
- Next.js
- TypeScript
- Tailwind CSS
- Node.js
- Express.js
- Prisma ORM
- PostgreSQL (Supabase)
- Frontend: Vercel
- Backend: Railway
NEXT_PUBLIC_API_URL=https://electricity-app-production.up.railway.app/api
PORT=5001
DATABASE_URL=your_database_url
JWT_SECRET=your_secret
JWT_EXPIRES_IN=1d
git clone https://github.com/Abraham3stack/electricity-app.git
cd electricity-app
cd backend
npm install
npm run dev
cd frontend
npm install
npm run dev
- User registers or logs in
- Inputs current electricity units from meter
- Logs daily usage
- App calculates:
- Average usage per day
- Estimated days remaining
- App provides insights and recommendations
- Full-stack application architecture
- JWT authentication
- REST API design
- Database modeling with Prisma
- Deployment with Railway & Vercel
- Handling real-world edge cases (auth, errors, async data)
Abraham Ogbu
This project was built as part of a full-stack learning journey and demonstrates real-world problem solving and production deployment.