Skip to content
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 21 additions & 21 deletions .env.demo
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ NATS_URL=nats://your-ip:4222
REDIS_HOST=your-ip
REDIS_PORT=6379

SENDGRID_API_KEY=
SENDGRID_API_KEY=

WALLET_STORAGE_HOST=your-ip
WALLET_STORAGE_PORT=5432
Expand Down Expand Up @@ -76,32 +76,32 @@ AWS_ORG_LOGO_BUCKET_NAME=
# Required (As connecting to org requires Shortened url)
AWS_S3_STOREOBJECT_ACCESS_KEY=
AWS_S3_STOREOBJECT_SECRET_KEY=
AWS_S3_STOREOBJECT_REGION=
AWS_S3_STOREOBJECT_REGION=
AWS_S3_STOREOBJECT_BUCKET=

# Please refere AWS to determine your bucket url
# https://docs.aws.amazon.com/AmazonS3/latest/userguide/VirtualHosting.html#path-style-access
SHORTENED_URL_DOMAIN='https://AWS_S3_STOREOBJECT_REGION.amazonaws.com/AWS_S3_STOREOBJECT_BUCKET'
DEEPLINK_DOMAIN='https://link.credebl.id?url='

ENABLE_CORS_IP_LIST=http://localhost:3000, http://localhost:3001, http://localhost:5000,http://localhost:8085,https://verify.credebl.id,https://verifyed.credebl.id,https://verify-api.credebl.id,https://qa.credebl.id,https://dev.credebl.id,https://credebl.id

USER_NKEY_SEED=SUAILBO6CYQF4RPIZYCVCFRIOMJ7BW33PFZDFEZKOHV65MN3W37FFJA3JY
API_GATEWAY_NKEY_SEED=SUAI7SDZAHS24I7JWOB77BK6EFE3ZS3NCF5FW22PMWCXGE56OBPYHK5734
ORGANIZATION_NKEY_SEED=SUABORS4UFEV2OAWNEXB7JA76XNOF7A6YJAFOGRZTWOEGCXER36P2NP7JQ
AGENT_PROVISIONING_NKEY_SEED=SUAIUEPEC5D4KMTLK45UOPZ45JQ5QUMMIIJY2UT37RMQE6GENBTJTT2MSQ
AGENT_SERVICE_NKEY_SEED=SUABOFFEQNQY7YR4BIZDJENJ5T24CCDYOYTVHBKQLEWTZUTPTL3EQ3IZ3U
VERIFICATION_NKEY_SEED=SUAOTKYQMN6RGVWLZII22A4EFURAT65H4PGU3G5QXKM427HZ3JKIQZ7KU4
LEDGER_NKEY_SEED=SUABKZWIZCMUROUKCSHL774UOLKFQZR2UPQXII5FCGXHF25GFQX2XLIPLI
ISSUANCE_NKEY_SEED=SUAG7GEESSHO2ZF4J2IUKB6QPF4ENTLO7MLXZSSF67MEETTFZWFGJNDYVU
CONNECTION_NKEY_SEED=SUALLWKCDN2KBB4YTZUNUUFP7ZNSI4PBXVK7X5FPNX6LQ3DCHFGYX4JPLQ
ECOSYSTEM_NKEY_SEED=SUAGUAGZZLT2LYEA3SRWFXCJL32MXR5GCBAZNYJLLIUH4O76GDEGQAYM74
CREDENTAILDEFINITION_NKEY_SEED=SUAAYNLVKEP2E4JPCJ7OYSQ6OFCDBQ3GCTOPARBXBNP64JFESDWH7N3FQA
SCHEMA_NKEY_SEED=SUAESXIRPE4PBJR26T44XPPIAONQ3YJTN45VSTRNZUW77GAF5RBP3SEBFA
UTILITIES_NKEY_SEED=SUAHLF3PYEGNN3J2LZHHT6LOQ4GQ2CPGATEO66XRXLCEE6QYSM26TKCNUM
CLOUD_WALLET_NKEY_SEED=SUAJ3VT7IFZXVE7SSTX3JFE6F2U6DYDROW6VTCCGFVVB6D7O6C7OWJWTPM
GEOLOCATION_NKEY_SEED=SUAA3YQLMQPKEK224OVFGENQ3VRYD57LNPJFMGDULOO57CUYOQLAA7KBJU
NOTIFICATION_NKEY_SEED=SUAF5V6RN6HHOLBJX6UV7443PBNT7NSAJ6YCUOW7LTZQ77PXXAMH25AHPI
ENABLE_CORS_IP_LIST=http://localhost:3000,http://localhost:3001,http://localhost:5000,http://localhost:8085

USER_NKEY_SEED=
API_GATEWAY_NKEY_SEED=
ORGANIZATION_NKEY_SEED=
AGENT_PROVISIONING_NKEY_SEED=
AGENT_SERVICE_NKEY_SEED=
VERIFICATION_NKEY_SEED=
LEDGER_NKEY_SEED=
ISSUANCE_NKEY_SEED=
CONNECTION_NKEY_SEED=
ECOSYSTEM_NKEY_SEED=
CREDENTAILDEFINITION_NKEY_SEED=
SCHEMA_NKEY_SEED=
UTILITIES_NKEY_SEED=
CLOUD_WALLET_NKEY_SEED=
GEOLOCATION_NKEY_SEED=
NOTIFICATION_NKEY_SEED=

KEYCLOAK_DOMAIN=http://localhost:8080/
KEYCLOAK_ADMIN_URL=http://localhost:8080
Expand Down Expand Up @@ -144,5 +144,5 @@ APP=api

#Schema-file-server
APP_PORT=4000
JWT_TOKEN_SECRET=c2e48ca31ac2a0b9af47f3a9f5a0809a858c296948c1326eb746bb7bc945a9d5
JWT_TOKEN_SECRET=
ISSUER=Credebl
18 changes: 9 additions & 9 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@ module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
sourceType: 'module'
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: ['plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'],
root: true,
env: {
node: true,
jest: true
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'prettier/prettier': 0,
'no-console': 'error',
// "@typescript-eslint/consistent-type-imports": "error",
'@typescript-eslint/no-unused-vars': [
'error'
'error',
// {
// "argsIgnorePattern": "_"
// }
Expand Down Expand Up @@ -59,11 +59,11 @@ module.exports = {
'error',
{
array: true,
object: true
object: true,
},
{
enforceForRenamedProperties: false
}
enforceForRenamedProperties: false,
},
],
'prefer-numeric-literals': 'error',
'prefer-rest-params': 'warn',
Expand Down Expand Up @@ -99,6 +99,6 @@ module.exports = {
'object-shorthand': 'error',
'prefer-const': 'error',
'prefer-template': 'error',
quotes: ['warn', 'single', { allowTemplateLiterals: true }]
}
};
quotes: ['warn', 'single', { allowTemplateLiterals: true }],
},
}
57 changes: 57 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: "🚀 Feature Request"
description: Suggest an idea or enhancement for this project
labels: [enhancement]
title: "feat: "
body:
- type: checkboxes
id: agreement
attributes:
label: Preliminary Checks
options:
- label: "I've read the [contibution guide](https://docs.credebl.id/docs/contribute/how-to-contribute) and agree to it"
required: true
- label: "I have searched [existing issues](https://github.com/credebl/platform/issues) and [pull requests](https://github.com/credebl/platform/pulls) to avoid duplicates."
required: true
- label: "I'm willing to create a PR for this feature. (if applicable)."
- type: markdown
attributes:
value: |
## 🧩 Problem Statement

_Is your feature request related to a problem? Please describe it clearly._

> Ex: I'm always frustrated when [...]

---

## 💡 Proposed Solution

_A clear and concise description of what you want to happen._

> Ex: It would be great if [...]

---

## 🔄 Alternatives Considered

_Have you considered any alternative solutions or features?_

> Ex: I also thought about [...], but [...]

---

## 📎 Additional Context

_Add any other context, references, mockups, or screenshots here._

---

## ✅ Acceptance Criteria

_List specific tasks or outcomes that define when this request is complete._

- A new endpoint `/v1/...` is added
- Docs updated
- Tests written and passing
validations:
required: false
31 changes: 0 additions & 31 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

71 changes: 71 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: "🐛 Bug Report"
description: Report a bug or unexpected behavior in the project
labels: [bug]
title: "fix: "
body:
- type: checkboxes
id: agreement
attributes:
label: Preliminary Checks
options:
- label: I have read the contributions guide [contibution guide](https://docs.credebl.id/docs/contribute/how-to-contribute) and agree to it
required: true
- label: I have searched [existing issues](https://github.com/credebl/platform/issues) and [pull requests](https://github.com/credebl/platform/pulls) to avoid duplicates.
required: true
- label: "I'm willing to create a PR for this feature. (if applicable)."
- type: markdown
attributes:
value: |
## 🐞 Bug Description

_A clear and concise description of what the bug is._

When I try to [...], I get this unexpected behavior [...]

---

## 🧪 Steps to Reproduce

_Provide clear steps to reproduce the bug._

1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error

---

## ✅ Expected Behavior

_What did you expect to happen?_

---

## ❌ Actual Behavior

_What actually happened instead?_

---

## 📌 Affected Version/Commit

_Version number, branch name, or commit hash where the bug occurs._

---

## 💻 Environment

_Where did the issue occur?_

- [ ] Local development
- [ ] Production
- [ ] CI/CD
- [ ] Other

---

## 🧾 Relevant Logs, Screenshots, or Stack Traces

_Paste any error messages or screenshots that can help diagnose the issue._
validations:
required: false
11 changes: 5 additions & 6 deletions Dockerfiles/Dockerfile.cloud-wallet
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Stage 1: Build the application
FROM node:18-slim as build
FROM node:18-alpine AS build
# Install OpenSSL
RUN apk add --no-cache openssl
RUN npm install -g pnpm

RUN apt-get update -y
RUN apt-get --no-install-recommends install -y openssl
# Set the working directory
WORKDIR /app

Expand All @@ -25,10 +24,10 @@ RUN cd libs/prisma-service && npx prisma generate
RUN pnpm run build cloud-wallet

# Stage 2: Create the final image
FROM node:18-slim
FROM node:18-alpine

RUN apk add --no-cache openssl

RUN apt-get update -y
RUN apt-get --no-install-recommends install -y openssl
# Set the working directory
WORKDIR /app
# RUN npm install -g pnpm
Expand Down
8 changes: 5 additions & 3 deletions Dockerfiles/Dockerfile.seed
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM node:18 as build
FROM node:18-alpine

# Install pnpm
RUN npm install -g pnpm

# Install PostgreSQL client (use apt for Debian-based images)
RUN apt-get update && apt-get install -y postgresql-client
RUN apk add --no-cache postgresql-client openssl

# Set working directory
WORKDIR /app

COPY . .
RUN chmod +x /app/libs/prisma-service/prisma/scripts/geo_location_data_import.sh
RUN chmod +x /app/libs/prisma-service/prisma/scripts/update_client_credential_data.sh

ENV PUPPETEER_SKIP_DOWNLOAD=true
RUN pnpm i --ignore-scripts

# Run Prisma commands
Expand Down
41 changes: 8 additions & 33 deletions Dockerfiles/Dockerfile.user
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
# Stage 1: Build the application
FROM node:18-slim as build


FROM node:18-alpine AS build

# Install OpenSSL
RUN apk add --no-cache openssl
RUN npm install -g pnpm

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_SKIP_DOWNLOAD true

# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install openssl gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install google-chrome-stable -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*

# RUN apk update && apk list --all-versions chromium
# Set the working directory
WORKDIR /app

# Copy package.json and package-lock.json
COPY package.json ./

ENV PUPPETEER_SKIP_DOWNLOAD=true

# Install dependencies
RUN pnpm install
RUN pnpm i --ignore-scripts

# Copy the rest of the application code
COPY . .
Expand All @@ -37,24 +25,11 @@ RUN cd libs/prisma-service && npx prisma generate
RUN pnpm run build user

# Stage 2: Create the final image
FROM node:18-slim

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_SKIP_DOWNLOAD true

# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install openssl gnupg wget -y && \
wget --quiet --output-document=- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google-archive.gpg && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && \
apt-get install google-chrome-stable -y --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
FROM node:18-alpine

RUN apk add --no-cache openssl
# Set the working directory
WORKDIR /app
RUN npm install -g pnpm

# Copy the compiled code from the build stage
COPY --from=build /app/dist/apps/user/ ./dist/apps/user/
Expand Down
Loading
Loading