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`
|
|
|
|
* create .env from template .env.sample sepcifiying database creds and listening port for API, and working directory
|
|
|
|
* `node index.js`
|
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
|