Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
/ power-net-client Public archive

Client for a REST API (power-net-server) dedicated to the modeling of electrical transmission networks and making power flow computations.

License

Notifications You must be signed in to change notification settings

flaudanum/power-net-client

Repository files navigation

PowerNet - Client

PowerNet is an application for modeling electrical transmission networks and making power flow computations.

This is the repository of the web client for Power Net. This application consumes the API provided by PowerNet Server. So before running the application be sure that a local instance of it is running and served at http://localhost:6910. This URL may be modified by editing src/main.ts and changing variable backUrl.

Installation

Clone this repository:

git clone https://github.com/flaudanum/power-net-client.git ./install-dir

or simply click on the Code button and download and extract a .zip archive.

In order to install this application you will need the node package installer npm that goes with Node.js. So install the last version of Node.js first and make sure that the bin/ folder of your install directory is addd to the environment variable PATH.

Next change to your local project directory and install dependencies with npm:

cd ./install-dir
npm install

Running tests

Unit testing was developed with JEST. Run the tests with:

npm run test:unit

or if you installed jest globally run directly:

jest --coverage

Deployment

Run the following command for packaging the application for deployment:

npm run build

This operation creates the dist/ folder which contains the packages application. This folder is aimed at being deployed to any static HTTP server.

If you want to run in development mode execute:

npm run serve

User guide

The usage is exposed by a tutorial available at the documentation page.

ToDos

  • [FIX] add voltage angle at buses to the Bus interface
  • Complete unit test cover
  • CRUD operations with forms
  • Mising unit tests
  • In the page User Home, load a summary of available networks instead of loading all the networks
    • An upgrade of the server API is required
    • Summaries should be a collection of documents nested in documents of the Users collection
  • Error handling & testing
  • Make the navbar and the sidebar stick to their position when scrolling down the page
  • End tot end testing

About

Client for a REST API (power-net-server) dedicated to the modeling of electrical transmission networks and making power flow computations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published