build | ||
inquirey | ||
offline | ||
route_sql | ||
.env.sample | ||
.gitignore | ||
columns.md | ||
create_certs.sh | ||
forecast_api.service | ||
index.js | ||
LICENSE | ||
Master Template 1.6.xlsm | ||
msauth.html | ||
package-lock.json | ||
package.json | ||
README.md | ||
sample_request.json |
Setup
- git clone (to //opt for verbatim use of the .service file)
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
additionally, to setup as service
- 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