Skip to content

Commit

Permalink
updated vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunlumbcgov committed Oct 30, 2023
1 parent e1207ea commit 338faba
Show file tree
Hide file tree
Showing 230 changed files with 58,700 additions and 0 deletions.
21 changes: 21 additions & 0 deletions backend/.babelrc
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
}
37 changes: 37 additions & 0 deletions backend/.gitignore
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
14 changes: 14 additions & 0 deletions backend/Dockerfile
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"]
19 changes: 19 additions & 0 deletions backend/README.md
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.
Loading

0 comments on commit 338faba

Please sign in to comment.