Skip to content

Commit

Permalink
Initial commit - stripped of sensitive info from the SME-QA-Tool.
Browse files Browse the repository at this point in the history
   329  Kelvin Luu <[email protected]>
    81  Neil Sharma <[email protected]>
    77  Michael Weissman <[email protected]>
    35  Kelvin Luu <[email protected]>
    26  Jenn <[email protected]>
    15  Matthew Dingee <[email protected]>
    10  neil <[email protected]>

Users below 10 commits were removed to prevent there being too much noise.
Commits are reflective of git hygine, not of effort, where, for example,
@matt Dingee was a core contributor, but @Kelvin Luu has an order of
magnitude of more commits due to both time on project and commits rather
than PRs.

Co-authored-by: Kelvin Luu <[email protected]>
Co-authored-by: Neil Sharma <[email protected]>
Co-authored-by: Michael Weissman <[email protected]>
Co-authored-by: Jenn <[email protected]>
Co-authored-by: Matthew Dingee <[email protected]>
  • Loading branch information
5 people committed Nov 23, 2021
0 parents commit 52a49cd
Show file tree
Hide file tree
Showing 2,264 changed files with 52,652 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cfignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
backend/node_modules
backend/template-env.js
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# js, jsx, json
[*.{js,jsx,json}]
charset = utf-8
indent_style = space
indent_size = 2
10 changes: 10 additions & 0 deletions .github/actions/cf-action/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:18.04

WORKDIR /
RUN wget -q -O - https://packages.cloudfoundry.org/debian/cli.cloudfoundry.org.key | apt-key add -
RUN echo "deb https://packages.cloudfoundry.org/debian stable main" | tee /etc/apt/sources.list.d/cloudfoundry-cli.list
RUN apt-get install -y cf7-cli


ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
21 changes: 21 additions & 0 deletions .github/actions/cf-action/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2020 James Hunt

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software..

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
29 changes: 29 additions & 0 deletions .github/actions/cf-action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "CF Push"
description: Push an application to a Cloud Foundry
inputs:
manifest:
description: The path to your CF application manifest
required: true
api:
description: The Cloud Foundry API endpoint
required: true
username:
description: Your Cloud Foundry authentication username (or email address)
required: true
password:
description: Your Cloud Foundry authentication password
required: true
org:
description: The name of the Cloud Foundry organization in which to deploy
required: true
space:
description: The name of the Cloud Foundry space in which to deploy
required: true
validate:
description: Whether or not to validate the CF API's TLS certificate
required: false
default: true

runs:
using: docker
image: Dockerfile
10 changes: 10 additions & 0 deletions .github/actions/cf-action/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
cf_opts=
if [ "x${INPUT_VALIDATE}" = "xfalse" ]; then
cf_opts="--skip-ssl-validation"
fi
cf api ${INPUT_API} ${cf_opts}
CF_USERNAME=${INPUT_USERNAME} CF_PASSWORD=${INPUT_PASSWORD} cf auth
cf target -o ${INPUT_ORG} -s ${INPUT_SPACE}
cf push ${INPUT_APP} -f ${INPUT_MANIFEST}
Empty file.
34 changes: 34 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.env
.vscode
.DS_Store

node_modules/

lockbox

client/
*.css

dev*
prod*
stage*


combined.log
error.log
audit.log

coverage
scratch

# keys
lockbox/keys.enc
lockbox/prod
lockbox/staging

_*
# Actual data

api/coverage
api/tmp
api/logs
6 changes: 6 additions & 0 deletions api/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/

*.md

Dockerfile
Dockerfile.dev
1 change: 1 addition & 0 deletions api/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/*
24 changes: 24 additions & 0 deletions api/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-parameter-properties": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment" : "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "off"
},
"env" : {
"commonjs": true,
"es6": true,
"node": true
}
}
46 changes: 46 additions & 0 deletions api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp
*.error.log


pids
logs/*.log
logs
results
tmp

# Build
public/css/main.css

# Coverage reports
coverage

# API keys and secrets
.env

# Dependency directory
node_modules
bower_components

# Editors
.idea
*.iml

# OS metadata
.DS_Store
Thumbs.db

# Ignore built ts files
dist/**/*

# ignore yarn.lock
yarn.lock

build
9 changes: 9 additions & 0 deletions api/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

{
"printWidth": 150,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"semi": true,
"arrowParens": "avoid"
}
15 changes: 15 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:12.16.2-alpine

WORKDIR /app

COPY package.json .
COPY package-lock.json .

RUN npm install

COPY . ./app

ENV PORT=9000
EXPOSE 9000

CMD ["npm", "start"]
14 changes: 14 additions & 0 deletions api/Dockerfile.compose
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:14.17.3-alpine
WORKDIR /opt/node_app/app

COPY package.json package-lock.json ./
COPY tsconfig.json ./

RUN npm ci --no-optional

COPY . .

ENV PORT=9009
EXPOSE 9009

CMD ["npm", "run", "dev"]
17 changes: 17 additions & 0 deletions api/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM node:12.16.2-alpine as builder

COPY package.json package-lock.json ./
COPY tsconfig.json ./

RUN npm ci --no-optional && mkdir /api-build && mv ./node_modules ./api-build
WORKDIR /api-build

COPY . .

RUN npm run build
RUN rm -rf src/

ENV PORT=9009
EXPOSE 9009

CMD ["npm", "run", "start"]
1 change: 1 addition & 0 deletions api/buildVersion.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"3.1.0"
8 changes: 8 additions & 0 deletions api/jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/build/', '<rootDir>/node_modules/', '<rootDir>/tests/integration.tests'],
collectCoverageFrom: ['**/*.{ts,tsx}', '!**/node_modules/**', '!**/vendor/**'],
collectCoverage: false,
verbose: true,
};
13 changes: 13 additions & 0 deletions api/nodemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

{
"watch": [
"src",
".env"
],
"ext": "js,ts,json",
"ignore": [
"src/**/*.spec.ts",
"src/**/*.test.ts"
],
"exec": "ts-node --transpile-only src/server.ts"
}
Loading

0 comments on commit 52a49cd

Please sign in to comment.