2021-07-12 11:07:28 -04:00
|
|
|
## Setup
|
|
|
|
|
|
|
|
* git clone (to //opt for verbatim use of the .service file)
|
|
|
|
* npm install
|
|
|
|
* create certs (`./create_certs.sh`)
|
|
|
|
* populate .env from template for database creds and listening port for API, and working directory
|
|
|
|
* 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
|
|
|
|
* build/build_baseline.sql
|