Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NicMcPhee committed Feb 25, 2020
0 parents commit 26707ec
Show file tree
Hide file tree
Showing 87 changed files with 20,616 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# https://editorconfig.org
# This is based on the Angular `.editorconfig`:
# https://github.com/angular/angular/blob/master/.editorconfig

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

# Whitespace changes in Markdown files can sometimes mess with
# the Markdown formatting, so we need to avoid these kinds of
# changes.
[*.md]
max_line_length = off
insert_final_newline = false
trim_trailing_whitespace = false
32 changes: 32 additions & 0 deletions .github/workflows/client-angular.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Client Angular

on: [push]

jobs:
test:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies (npm ci)
run: npm ci
working-directory: ./client
- name: Test (npm run test)
run: npm run test -- --no-watch --no-progress --browsers=ChromeHeadlessCI
working-directory: ./client

51 changes: 51 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: End-to-End

on: [push]

jobs:
test:

runs-on: ubuntu-latest

services:
mongo:
image: mongo:3.4.23
ports:
- '27017-27019:27017-27019'

steps:
- uses: actions/checkout@v1

- name: Install Mongo Tools
run: sudo apt-get install mongo-tools

- name: Seed database
run: ./mongoseed.sh
working-directory: ./database

- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies (npm ci)
run: npm ci
working-directory: ./client

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Start server and run e2e tests
run: cd server && ./gradlew run & cd client && npm run e2e -- --protractor-config=e2e/protractor-ci.conf.js


33 changes: 33 additions & 0 deletions .github/workflows/server-gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Server Java

on: [push]

jobs:
build:

runs-on: ubuntu-latest

services:
mongo:
image: mongo:3.4.23
ports:
- '27017-27019:27017-27019'

steps:
- uses: actions/checkout@v1

- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Build with Gradle
run: ./gradlew build
working-directory: ./server
166 changes: 166 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@

# Created by https://www.gitignore.io/api/vim,code,linux,macos,emacs,windows,code-java
# Edit at https://www.gitignore.io/?templates=vim,code,linux,macos,emacs,windows,code-java

### Code ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

### Code-Java ###
# Language Support for Java(TM) by Red Hat extension for Visual Studio Code - https://marketplace.visualstudio.com/items?itemName=redhat.java

.project
.classpath
factoryConfiguration.json

### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
#/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

# network security
/network-security.data


### Linux ###

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Vim ###
# Swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist

# Auto-generated tag files
tags

# Persistent undo
[._]*.un~

# Coc configuration directory
.vim

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.gitignore.io/api/vim,code,linux,macos,emacs,windows,code-java

# Aditional custom ignores

.settings/
49 changes: 49 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
// Java Extension Pack
// https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack
"vscjava.vscode-java-pack",

// Angular Language Service
// https://marketplace.visualstudio.com/items?itemName=Angular.ng-template
"Angular.ng-template",

// EditorConfig for VS Code
// https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
"EditorConfig.EditorConfig",

// Bracket Pair Colorizer 2
// https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer-2
"CoenraadS.bracket-pair-colorizer-2",

// Gradle language support
// https://marketplace.visualstudio.com/items?itemName=naco-siren.gradle-language
"naco-siren.gradle-language",

// Markdown All in One
// https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
"yzhang.markdown-all-in-one",

// GitHub Markdown Preview
// https://marketplace.visualstudio.com/items?itemName=bierner.github-markdown-preview
"bierner.github-markdown-preview",

// Code Spell Checker
// https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker
"streetsidesoftware.code-spell-checker",

// TSLint
// https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
"ms-vscode.vscode-typescript-tslint-plugin",

// Azure Cosmos DB
// https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-cosmosdb
"ms-azuretools.vscode-cosmosdb"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"java.configuration.updateBuildConfiguration": "automatic",
"cSpell.words": [
"CSCI",
"sidenav",
"todos"
]
}
Loading

0 comments on commit 26707ec

Please sign in to comment.