Skip to content

Lightency-io/NearCon-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Lightency PowerChain: Nearcon 2023 Hackathon

Badges

MIT License

Table of contents

  1. Overview
  2. Features
  3. Technical Architecture
  4. Getting started
    1. Prerequisites

Screenshots

App Screenshot

Tech Stack

Client: React, RClient: Angular, Chart.js

Server: Node.js

Overview

App Screenshot

Welcome to the Lightency Powerchain GitHub repository. Lightency Powerchain is a pioneering project dedicated to building an Energy Management System (EMS) with an innovative matching and pricing algorithm. Our objective is to facilitate seamless energy trading through a decentralized Peer-to-Peer Energy Marketplace. Additionally, we are introducing a cutting-edge Renewable Energy Certificate (REC) platform, all developed on the secure and scalable NEAR Protocol blockchain.

System Workflow

App Screenshot

The Energy Management System (EMS) is integral to the Lightency Powerchain, acting as the primary data collector from hardware components such as PV solar panels, batteries, and inverters. Once this foundational data is aggregated, the Lightency micro-service is activated. This service is responsible for executing the innovative matching and pricing process, enabling seamless peer-to-peer energy trading. After the matching and pricing phase, transactions are promptly executed and then securely recorded on the NEAR Protocol blockchain. This ensures that every energy trade is not only efficient but also transparent and immutable .

Features

App Screenshot

  • Blockchain: Utilizing NEAR Protocol for decentralized and secure transactions. other without intermediaries.
  • Frontend: A user-friendly interface developed using Angular, allowing users to interact with the PowerChain platform.
  • Backend: A Node.js server interfacing between the frontend and the blockchain, handling business logic and data processing.

Run Locally

Clone the project

    git clone https://github.com/Lightency-io/NearCon-2023.git

Navigate to the frontend directory and install dependencies:

    cd energy_management_system/Front
    npm install

Start the frontend server:

    ng serve -o -c openems-backend-dev

In a new terminal, navigate to the backend directory and install dependencies:

    cd energy_management_system/Backend
    npm install

Start the backend server:

    node near_matching.js

Environment Variables

To run this project, you will need to add the following environment variables to your .env file
ACCOUNT_ID
KEY_PATH INFLUXDB_URL INFLUXDB_TOKEN INFLUXDB_ORG MONGODB_URI

License

MIT