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
.
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
Unit testing was developed with JEST. Run the tests with:
npm run test:unit
or if you installed jest globally run directly:
jest --coverage
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
The usage is exposed by a tutorial available at the documentation page.
- [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 theUsers
collection
- Error handling & testing
- Make the navbar and the sidebar stick to their position when scrolling down the page
- End tot end testing