Skip to content

coda-platform/stats-api

Repository files navigation

Stats API

Overview

  • Description: This repository implements the code required to performs statistical computations on de-identified data. It receives requests from the site API and communicates with the site store to obtain the de-identified data necessary to fulfill these requests.
  • Primary author(s): Kevin Arsenault [@arsenaultk9], Xuefei Shi [@xuefeishi], Jeffrey Li [@JeffreyLi16], Maxime Lavigne [@malavv].
  • Contributors: Julien Levesque [@JulienL3vesque], Louis Mullie [@louism], 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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages