/powsybl-network-store-server

Primary LanguageJavaMozilla Public License 2.0MPL-2.0

PowSyBl Network Store Server

Actions Status Coverage Status MPL-2.0 License Join the community on Spectrum Slack

PowSyBl (Power System Blocks) is an open source framework written in Java, that makes it easy to write complex software for power systems’ simulations and analysis. Its modular approach allows developers to extend or customize its features.

PowSyBl is part of the LF Energy Foundation, a project of The Linux Foundation that supports open source innovation projects within the energy and electricity sectors.

PowSyBl Logo

Read more at https://www.powsybl.org !

This project and everyone participating in it is governed by the PowSyBl Code of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to powsybl-tsc@lists.lfenergy.org.

PowSyBl vs PowSyBl Network Store Server

PowSyBl Network Store is an alternative implementation of PowSyBl Core Network API that persists in a PostgreSQL database.

Getting started

Build

cd powsybl-network-store-server
mvn clean install

Postgresql install

Install postgresql with your system package manager or with a dedicated docker container (or any other method) and connect to the sql shell and create a database:

CREATE DATABASE iidm;

Copy paste src/main/resources/schema.sql in the sql shell to create the iidm tables.

Start network store server

In an other shell:

cd target/
java -jar powsybl-network-store-server-1.0.0-SNAPSHOT-exec.jar

Spring boot server should start and connect to the postgresql database (localhost hardcoded...)

Run integration tests

You can run the integration tests:

$ mvn verify