Power performance metrics for GNOME-Battery-Bench
cargo run
Running and building
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification [view the bundle analyzer report]
npm run build [--report]
Testing
npm run unit # run unit tests
npm run e2e # run e2e tests
npm test # run all tests
#First time only, create a volume to make data persistent
sudo docker volume create --name powergrid-storage
#Build and run
sudo docker build -t powergrid .
sudo docker run -p 5000:5000 -v powergrid-storage:/data --name powergrid -d powergrid
#Stopping
sudo docker stop powergrid && sudo docker rm powergrid
curl -H "Content-Type: application/json" -X POST http://localhost:5000/api/upload -d @<FILE>