louisfb01 / site-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Site API

Overview

  • Description: This repository implements code to receive messages via WebSocket, and forward them to the appropriate microservice: learning API for machine learning jobs, or stats API for statistical queries.
  • Primary author(s): Kevin Arsenault [@arsenaultk9], Alexandre Hamel [@ahamelmcgill], Xue Feishi [@xuefeishi], Jeffrey Li [@JeffreyLi16], Maxime Lavigne [@malavv].
  • Contributors: Pascal St-Onge [@stongepa].
  • License: The code in this repository is released under the GNU General Public License, V3.

Deployment

Production

Authenticate on Docker, then run publish.sh as follows:

docker login -u ${USER} -p ${USER}
./publish.sh

Finally, wait for the ansible script to execute on site hosts (executes at each 10 min and takes about 3 min to run).

Local deployment

npm run start

Security analysis

Trivy (Most severe)

docker run --rm -v C:\dev\trivy:/root/.cache/ -v //var/run/docker.sock:/var/run/docker.sock  aquasec/trivy image coda-learning-api:latest --security-checks vuln > report.txt

npm

npm audit

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 91.6%Language:JavaScript 5.9%Language:Dockerfile 1.5%Language:Shell 1.0%