Skip to content

Commit b7614bf

Browse files
author
Tom Berey
committed
Initial Commit
0 parents  commit b7614bf

24 files changed

+4461
-0
lines changed

.env.sample

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
APP_NAME = tomco-hq
2+
PORT = 3000
3+
HOSTNAME = 127.0.0.1
4+
5+
DB_HOST = <host>
6+
DB_USER = <username>
7+
DB_PASSWORD = <password>
8+
DB_NAME = <db-name>
9+
10+
ELECTRON_WIN_WIDTH = 500
11+
ELECTRON_WIN_HEIGHT = 600
12+
13+
AWS_REGION = <region>
14+
AWS_ENCRYPTION = <encryption-type>
15+
AWS_ACCESS_KEY_ID = <access-key>
16+
AWS_SECRET_ACCESS_KEY = <secret-access-key>
17+
18+
ROLLBAR_ACCESS_TOKEN = <access-token>
19+
ROLLBAR_ENV = <environment>

.github/workflows/codeql-analysis.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ development ]
6+
pull_request:
7+
# The branches below must be a subset of the branches above
8+
branches: [ main ]
9+
10+
jobs:
11+
analyze:
12+
name: Analyze
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
language: [ 'javascript' ]
19+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
20+
# Learn more:
21+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
22+
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v2
26+
27+
# Initializes the CodeQL tools for scanning.
28+
- name: Initialize CodeQL
29+
uses: github/codeql-action/init@v1
30+
with:
31+
languages: ${{ matrix.language }}
32+
# If you wish to specify custom queries, you can do so here or in a config file.
33+
# By default, queries listed here will override any specified in a config file.
34+
# Prefix the list here with "+" to use these queries and those in the config file.
35+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
36+
37+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
38+
# If this step fails, then you should remove it and run the build manually (see below)
39+
- name: Autobuild
40+
uses: github/codeql-action/autobuild@v1
41+
42+
# ℹ️ Command-line programs to run using the OS shell.
43+
# 📚 https://git.io/JvXDl
44+
45+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
46+
# and modify them (or add more) to build your code if your project
47+
# uses a compiled language
48+
49+
#- run: |
50+
# make bootstrap
51+
# make release
52+
53+
- name: Perform CodeQL Analysis
54+
uses: github/codeql-action/analyze@v1
55+
56+
test:
57+
name: Install, Build & Test (Node ${{ matrix.node_version }} & ubuntu-latest)
58+
runs-on: ubuntu-latest
59+
60+
strategy:
61+
matrix:
62+
node_version: ['15.x'] #['15','14']
63+
64+
steps:
65+
- name: Checkout repository
66+
uses: actions/checkout@v2
67+
68+
- name: Use Node.js ${{ matrix.node_version }}
69+
uses: actions/setup-node@v1
70+
with:
71+
node-version: ${{ matrix.node_version }}
72+
73+
- name: install > build > clean
74+
run: |
75+
npm install
76+
npm run build --if-present
77+
npm run cleanup --if-present
78+
79+
- name: update > install > build > test > clean
80+
run: |
81+
npm update
82+
npm install
83+
npm run build --if-present
84+
npm test --if-present

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
build
3+
logs
4+
private
5+
downloads
6+
.env

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# tomco-hq
2+
3+
## pre-alpha build

nodemon.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"watch": "src",
3+
"ext": ".ts",
4+
"ignore": ["build"],
5+
"exec": "npm run build && electron build/main.js"
6+
}

0 commit comments

Comments
 (0)