Skip to content

usd-cs/COMP-491-24-25-Sustainability-Dashboard

Repository files navigation

COMP-491-24-25-Sustainability-Dashboard

Project Overview

The Sustainability Dashboard is a web-based application designed to visualize and report energy data for sustainability-focused initiatives. Built using Vue.js for the frontend and Node.js with Express for the backend, it employs a microservices architecture for modularity, scalability, and flexibility. The backend integrates with PostgreSQL for structured data storage and supports multiple energy sources, such as solar, utility, and fuel cells. The platform aims to provide real-time data visualization, energy usage insights, and interactive maps for users, including administrators and the general public.


Software Requirements

Backend Requirements

Frontend Requirements

Package Manager

  • npm (bundled with Node.js) or yarn (optional)

Development Tools


Environment Configuration

Ensure you have the following environment variables configured:

  1. PostgreSQL Database Connection:

    • DB_USER - PostgreSQL username
    • DB_PASSWORD - PostgreSQL password
    • DB_HOST - PostgreSQL host
    • DB_PORT - PostgreSQL port (default: 5434)
    • DB_NAME - PostgreSQL database name
  2. Backend API URL:

  • API_URL - The base URL for the backend API (default: http://localhost:3000)

Key Features

  • Calpine Energy Service: Fetches and processes electricity usage for on-campus locations.
  • SDG&E Energy Service: Handles off-campus electricity data and sub-meter tracking.
  • AE Power Solar Service: Monitors solar panel energy generation metrics.
  • Bloom Energy Fuel Cell Service: Tracks fuel cell energy creation and efficiency.

Updated Instructions

How to Run

  1. Clone the repository.

  2. Install dependencies for the entire project:

    npm install
  3. Start the backend server:

    npm start
  4. Start the frontend and create a local webpage URL:

    npm run dev
  5. Run tests:

    npm test
  6. Run the linter:

    npm run lint
    
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •