energywebfoundation / rebeam-monorepo

Elia ReBeam project repo
GNU General Public License v3.0
0 stars 0 forks source link

Energy Web Foundation Logo

Elia ReBeam Project Monorepo

Supplier switching for EV Drivers

Description

Contains the following packages:

Name Description
emsp-backend NestJS server that manages EV Driver charging sessions over the OCN
ev-charging-app Customer-facing mobile/web application for managing supplier credentials and initiating charging sessions

Installation

Requirements

Before installing, download and install Node.js. Node.js 14 (LTS) or higher is required. NPM 8.3.2 or higher is also required.

For development, we use Docker, including docker-compose.

This monorepo uses lerna.

Installation is done using the following commands:

$ npm install
$ npm run init

Build

$ npm run build

Update dependencies

$ npm run update

Run

$ docker-compose up # requires docker-compose

Next, run the setup script to create your local OCN and register the eMSP backend with the OCN Node:

node scripts/setup.js

The docker network persists data in volumes (ganache state, OCN Node DB, eMSP Backend DB). Running docker-compose down will reset the state on future restarts.

Testing

Combined Unit & Integration Tests

$ npm run test

Deployment

To build the EMSP Backend:

$ cd packages/emsp-backend
$ docker build -t emsp-backend .

To build the EV Charging App:

$ cd packages/ev-charging-app
$ npm run build

The static files in the build directory can then be served.

When running the container, please refer to the required environment variables.

Contributing Guidelines

See contributing.md

Questions and Support

For questions and support please use Energy Web's Discord channel

Or reach out to our contributing team members

EW-DOS

The Energy Web Decentralized Operating System is a blockchain-based, multi-layer digital infrastructure.

The purpose of EW-DOS is to develop and deploy an open and decentralized digital operating system for the energy sector in support of a low-carbon, customer-centric energy future.

We develop blockchain technology, full-stack applications and middleware packages that facilitate participation of Distributed Energy Resources on the grid and create open market places for transparent and efficient renewable energy trading.

For a deep-dive into the motivation and methodology behind our technical solutions, we encourage you to read our White Papers:

Connect with Energy Web

License

This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details