These instructions are only for MacOSX and Linux (Debian or Ubuntu).
- git -> https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
- Docker & Docker Compose -> https://docs.docker.com/compose/install/
- nodejs (8lts version) & npm -> https://nodejs.org/en/download/package-manager/
- $ git clone https://stash.4eyes.ch/scm/eyes/ewb-origin.git
- $ cd ewb-origin
- $ ./build.sh
-
$ ./destroy.sh
-
API:
- user
- create: (post): localhost:8000/user/create
- getSingle: (get): localhost:8000/user//get
- getAll: (get): localhost:8000/user/all
- update: (put): localhost:8000/user//update
- update selling price: (put): localhost:8000/user//selling-price/update
- uni pi
- create: (post): localhost:8000/unipi/create
- getSingle: (get): localhost:8000/unipi//get
- getAll: (get): localhost:8000/unipi/all
- update: (put): localhost:8000/unipi//update
- demand
- create: (post): localhost:8000/demand/create
- getSingle: (get): localhost:8000/demand//get
- getAll: (get): localhost:8000/demand/all
- update: (put): localhost:8000/demand//update
- certificate
- create: (post): localhost:8000/certificate/create
- getSingle: (get): localhost:8000/certificate//get
- getAll: (get): localhost:8000/certificate/all
- update: (put): localhost:8000/certificate//update
- user
-
API (Request params):
- user
- create
- username
- name
- street
- postalCode
- sellingPrice
- getSingle
- id (get param)
- getAll
- <>
- update
- id (get param)
- name
- street
- postalCode
- sellingPrice
- update selling price
- id (get param)
- sellingPrice
- create
- uni pi
- create
- username
- getSingle
- id (get param)
- getAll
- <>
- update
- id (get param)
- username
- create
- demand
- create
- username
- kwh
- price
- getSingle
- id (get param)
- getAll
- <>
- update
- id (get param)
- hasCertificate (boolean)
- create
- certificate
- create
- unipi
- minimalPrice
- getSingle
- id (get param)
- getAll
- <>
- update
- id (get param)
- demand
- sellingPrice
- create
- user