-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1207ea
commit 338faba
Showing
230 changed files
with
58,700 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"useBuiltIns": "usage", | ||
"corejs": 3, | ||
"targets": { | ||
"node": "current" | ||
} | ||
} | ||
] | ||
], | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-transform-runtime", | ||
"rewire" | ||
], | ||
"sourceMaps": "inline", | ||
"retainLines": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.DS_Store | ||
.nyc_output | ||
.scannerwork | ||
dist | ||
node_modules | ||
coverage | ||
reports | ||
|
||
# local env files | ||
local.* | ||
local-*.* | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
local.json | ||
realm.json | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.iml | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw* | ||
*.pem | ||
|
||
# log files | ||
.*-audit.json | ||
*.log | ||
logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM artifacts.developer.gov.bc.ca/docker-remote/node:14.20.1-alpine3.16 | ||
|
||
RUN mkdir -p /logs | ||
RUN chmod 775 /logs | ||
|
||
WORKDIR /opt/app-root/src | ||
RUN ln -s /logs . | ||
|
||
COPY package*.json ./ | ||
RUN npm ci | ||
|
||
COPY . /opt/app-root/src | ||
EXPOSE 443 8080 | ||
CMD ["npm", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## GRAD Admin Backend | ||
The Node.js backend for GRAD Administration application. | ||
|
||
### Local Setup | ||
**`Step 1`**. make sure you have Node.js 14.19.0 installed in your local machine. if not download from here https://nodejs.org/en/ | ||
|
||
**`Step 2`**. make sure either you have redis installed locally(https://redis.io/download) or through docker. Run commanddocker run --name redis -d -p 6379:6379 redis redis-server --appendonly yes | ||
|
||
|
||
**`Step 3`**. Add NODE_ENV=local as environment variable. | ||
|
||
**`Step 4`**. Ask for local.json file which contains all the configs from teammate (Copy local.json into /backend/src/config folder), or create it by following config maps from oc console. | ||
|
||
**`Step 5`**. run `npm install` in command line from backend folder, to install required dependencies. | ||
|
||
**`Step 6`**. run `npm run serve` in command line from backend folder, to run the app. | ||
|
||
`Unit Tests` | ||
run `npm run test` in command line from backend folder, to execute unit tests. |
Oops, something went wrong.