Skip to content

JishnuPG-tech/SmartWatt-Frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Next.js React TypeScript Tailwind Recharts License

SmartWatt Frontend

SmartWatt Frontend is a Next.js application for household energy estimation workflows, including guided data input, appliance-level analytics, and historical dashboard views.

Core Capabilities

  • Multi-step assessment flow for household and appliance details.
  • Quick and detailed analysis modes.
  • Interactive charts for consumption distribution and trends.
  • Assessment history with dashboard-level exploration.
  • Authentication and persistence integration with Supabase.
  • PDF report generation and what-if simulation display.

Interface Preview

Assessment Flow Dashboard
Assessment flow Frontend dashboard

If images are not visible yet, add files in docs/screenshots/ from the repository root.

Technology Stack

  • Next.js 16
  • React 19
  • TypeScript 5
  • Tailwind CSS 4
  • Recharts and Plotly
  • Axios
  • Supabase JavaScript client

Project Layout

  • src/app/: route-based pages including main flow, authentication, and dashboard.
  • src/components/: reusable UI and feature components.
  • src/hooks/: analysis and simulation orchestration hooks.
  • src/lib/: API modules, transformations, utilities, and types.
  • src/config/: appliance and usage form metadata.

Local Setup

  1. Move to the frontend directory.
cd Frontend
  1. Install dependencies.
npm install
  1. Configure environment variables.
copy .env.example .env.local
  1. Start the development server.
npm run dev
  1. Open http://localhost:3000.

Build and Run

npm run build
npm run start

UX Notes

  • The interface supports quick and detailed assessment modes.
  • Data-entry steps are designed for predictable user progression.
  • Result visualizations are optimized for desktop and mobile layouts.

Environment

At minimum, configure the backend API URL:

  • NEXT_PUBLIC_BACKEND_URL

Additional Supabase variables can be configured based on deployment setup.

License

Licensed under the MIT License. See LICENSE.

About

SmartWatt

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages