GithubHelp home page GithubHelp logo

louisfb01 / hub-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from coda-platform/hub-api

0.0 1.0 0.0 1.44 MB

License: GNU General Public License v3.0

Shell 0.43% JavaScript 1.44% TypeScript 97.41% Batchfile 0.10% Dockerfile 0.63%

hub-api's Introduction

Hub API

Overview

  • Description: This repository implements a service that orchestrates and aggregates distributed analysis jobs on the CODA platform. It receives requests from the dashboard API and communicates with the site APIs conformant to the CODA API specification.
  • Primary author(s): Kevin Arsenault [@arsenaultk9], Xuefei Shi [@xuefeishi], Jeffrey Li [@JeffreyLi16], Maxime Lavigne [@malavv].
  • Contributors: Louis Mullie [@louism], Pascal St-Onge [@stongepa].
  • License: The code in this repository is released under the GNU General Public License, V3.

Contents

Installation


Step 1: Configuration

Supply the following environment variables via a .env file:

CODA_HUB_API_PORT=
CODA_AUTH_SERVICE_URL=
CODA_HUB_API_AUTH_REALM=
CODA_HUB_API_AUTH_CLIENT_SECRET=
CODA_HUB_API_AUTH_SESSION_MEMORY_SECRET=
CODA_HUB_CACHE_DB_PORT=
CODA_HUB_CACHE_DB_HOST=

#CODA_HUB_API_EMAIL_HOST=
#CODA_HUB_API_EMAIL_PORT=
#CODA_HUB_API_ERROR_EMAIL_RECIPIENTS=

Usage


Step 1

Start Redis instance (looks for it on 7777 by default).

$ docker run --name some-redis -p 7777:7777 -d redis

Step 2

Run the hub server (runs on 5427 by default).

$ npm start

Deployment


Step 1

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

Step 2

Ask a VALERIA team member to update the image in OpenShift.

Security


Use the following commands to check for security threats.

Comprehensive scan

Uses Trivy to scan for security issues.

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

Check NPM dependencies

Submits a description of the NPM dependencies of the project to your default registry and asks for a report of known vulnerabilities.

npm audit

Want to Contribute?


Check out CONTRIBUTING.md.

hub-api's People

Contributors

jeffreyli16 avatar louisfb01 avatar louismullie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.