forecast_api/README.md

20 lines
801 B
Markdown
Raw Permalink Normal View History

2021-07-12 14:39:21 -04:00
This will not work without exactly the right database schema which is out of scope. this is only the running process part of the forecast.
2021-07-12 11:07:28 -04:00
## Setup
* git clone (to //opt for verbatim use of the .service file)
2021-07-12 14:26:13 -04:00
* `npm install`
* create certs: `chmod 700 create_certs.sh` , `./create_certs.sh`
2021-07-12 14:42:19 -04:00
* clone sample env `cp .env.sample .env` and specify 1) database creds 2) working directory 3) listening port
2021-07-12 14:37:49 -04:00
* run: `node index.js`
2021-07-12 14:44:56 -04:00
* navigate to `https://localhost:8080/` to valide it's connectable
* open the spreadsheet and specify the target connection
2021-07-12 14:33:51 -04:00
additionally, to setup as service
2021-07-12 11:07:28 -04:00
* copy .service file to //etc/systemd/system/ (adjust user/working direct if needed)
* `sudo systemctl enable forecast_api.service`
## Initial Forecast
* all SQL depends on unchanged core sales matrix table schema