Skip to content

Conversation

DeepDN
Copy link

@DeepDN DeepDN commented Sep 7, 2025

  • Fix grammar error: 'host' to 'hosts' in repository description
  • Standardize section headers and improve consistency
  • Reorganize content with proper hierarchical structure
  • Improve formatting for better readability
  • Add numbered setup instructions for clarity
  • Standardize terminology (PostgreSQL, Docker, microservices)
  • Remove HTML line breaks and use proper markdown formatting
  • Add proper code block language specifications
  • Improve section organization and flow

Fixes #1275

Summary by CodeRabbit

  • Documentation
    • Major README restructure into numbered, step-by-step sections (Prerequisites, Setup, Microservices, Access).
    • Improved grammar, terminology, and wording throughout.
    • Expanded and clarified PostgreSQL, Prisma, and data seeding instructions with updated Docker guidance.
    • Added NATS broker Docker pull and compose guidance.
    • Clarified environment variable setup, install-dependencies step, and detailed microservice startup and API gateway usage.
    • Added credits; contributing and license polished.

- Fix grammar error: 'host' to 'hosts' in repository description
- Standardize section headers and improve consistency
- Reorganize content with proper hierarchical structure
- Improve formatting for better readability
- Add numbered setup instructions for clarity
- Standardize terminology (PostgreSQL, Docker, microservices)
- Remove HTML line breaks and use proper markdown formatting
- Add proper code block language specifications
- Improve section organization and flow

Fixes credebl#1275

Signed-off-by: DeepDn <[email protected]>
Copy link

coderabbitai bot commented Sep 7, 2025

Walkthrough

README.md was reorganized and rewritten: headings renamed and numbered, setup instructions restructured into stepwise commands (PostgreSQL, Prisma, seed, NATS, dependencies, env configuration, and microservice startup). No code or public API changes were made.

Changes

Cohort / File(s) Summary
Documentation: README reorganization and edits
README.md
Rewrote and restructured README: grammar/terminology fixes; renamed and numbered sections (e.g., “Pre-requisites” → “1. Prerequisites”); replaced legacy PostgreSQL docker run with a named credebl-postgres container using postgres:16, explicit env vars and volume; reorganized Prisma and seed steps; added NATS subsections (docker pull nats:latest, docker-compose up); reworked microservices workflow into numbered steps (install deps, configure env, run API gateway, start individual services with updated commands); updated Access Microservice Endpoints heading; added Credit note; minor contributing/license wording tweaks. No code/API changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Assessment against linked issues

Objective Addressed Explanation
Align README instructions with docs.credebl.id steps (#1275) README was updated to modernized steps; confirming exact parity with external docs.credebl.id requires cross-check beyond this diff.

Poem

I thump my paws on pages neat,
New headers hop in tidy feet.
From Postgres volumes to NATS so fleet,
Microservice commands fall into place sweet.
README refreshed — I wiggle with glee! 🐇✨

Pre-merge checks and finishing touches

✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title "fix: improve README.md documentation structure and formatting" succinctly and accurately summarizes the primary change—restructuring and formatting updates to README.md. It is concise, references the main artifact, and avoids irrelevant details, matching the raw_summary's description of documentation edits. Therefore the title is appropriate for this changeset.
Linked Issues Check ✅ Passed The README modifications implement the primary objectives from linked issue [#1275]: grammar/terminology corrections, standardized headers and numbering, removal/replacement of legacy setup instructions (PostgreSQL, NATS, microservices), and improved formatting, as reflected in the raw_summary. These changes address the issue's coding/documentation goals and map to the listed objectives. I cannot confirm exact parity with docs.credebl.id because that external resource was not provided here, so a final verification against docs.credebl.id is recommended before merging.
Out of Scope Changes Check ✅ Passed All observable changes are limited to README.md documentation updates; no source code, exported/public API declarations, or other unrelated files were modified according to the raw_summary, so there are no out-of-scope changes.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
README.md (1)

107-109: Fix typos and naming in credits.

“Asker” should be “Askar”; add article for “AYANWORKS team.”

-The CREDEBL platform is built by AYANWORKS team. 
-For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Asker, Indy, etc.
+The CREDEBL platform is built by the AYANWORKS team.
+For core SSI capabilities, it leverages work from multiple open-source projects such as Hyperledger Aries, Aries Bifold, Aries Askar, Hyperledger Indy, etc.
🧹 Nitpick comments (7)
README.md (7)

8-8: Replace bare URLs with Markdown links (fix MD034).

Use descriptive links to satisfy markdownlint and improve readability.

-See: https://docs.docker.com/engine/install/
+See: [Docker Engine install guide](https://docs.docker.com/engine/install/)

-See: https://nodejs.dev/en/learn/how-to-install-nodejs/
+See: [How to install Node.js](https://nodejs.dev/en/learn/how-to-install-nodejs/)

Also applies to: 12-12


15-17: Clarify NestJS CLI usage (global vs npx).

Without global install, plain nest may not be on PATH. Recommend either global install or npx nest.

-npm i @nestjs/cli@latest 
+# Option A: Global CLI
+npm i -g @nestjs/cli@latest
+# Option B: Use npx (no global install)
+# npx nest --version

47-51: Pin NATS image version.

Avoid latest for reproducibility.

-docker pull nats:latest
+docker pull nats:2

85-95: Complete the microservice list and suggest a parallel runner.

Include organization for consistency, and consider a single command (e.g., npm scripts/PM2) to start multiple services.

 nest start user [--watch]
 nest start ledger [--watch]
 nest start connection [--watch]
 nest start issuance [--watch]
 nest start verification [--watch]
 nest start agent-provisioning [--watch]
 nest start agent-service [--watch]
+nest start organization [--watch]

99-103: Make the gateway URL clickable.

Code fencing disables the link.

-```
-http://localhost:5000/api
-```
+[http://localhost:5000/api](http://localhost:5000/api)

19-21: Consider adding a “Clone the repo” step.

New contributors benefit from a first step showing clone and cd commands.

 ## Setup Instructions
+
+### 0. Clone the repository
+```bash
+git clone https://github.com/credebl/platform.git
+cd platform
+```

70-75: Specify the API gateway project key. nest start in a monorepo defaults to the first project and may fail—use the actual project name defined in nest-cli.json:

-nest start [--watch]
+nest start api-gateway [--watch]
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1ec9ced and 24ce823.

📒 Files selected for processing (1)
  • README.md (3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

8-8: Bare URL used

(MD034, no-bare-urls)


12-12: Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (1)
README.md (1)

53-58: Use Compose v2 syntax and run detached

-docker-compose up
+docker compose up -d

To start only the NATS service:

docker compose up -d nats

Comment on lines +11 to +12
Version: >= 18.17.0
See: https://nodejs.dev/en/learn/how-to-install-nodejs/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Align Node.js version with repo engines/CI.

18.17+ may be outdated versus your package.json/CI. Please verify and reflect the exact supported major (LTS) here.


🏁 Script executed:

#!/bin/bash
# Extract Node "engines" and CI Node versions
fd -u package.json | xargs -I{} jq -r '.engines?.node // empty | "engines(node) in {}: \(. )"' {}
fd -u .github -t f -e yml -E '*node_modules*' | rg -nP 'setup-node|node-version|matrix:\s*node'
# Check for .nvmrc if present
fd -u .nvmrc | xargs -I{} sh -c 'printf ".nvmrc: "; cat {}'

Length of output: 35


🏁 Script executed:

#!/bin/bash
# Find Node versions in GitHub Actions workflows
fd -u .github/workflows -t f -e yml --exec rg -nP 'node-version' {} -n
# Check for matrix node versions
fd -u .github/workflows -t f -e yml --exec rg -nP 'matrix:\s*node' {} -n
# Inspect .nvmrc if present
if [ -f .nvmrc ]; then
  echo ".nvmrc: $(cat .nvmrc)"
else
  echo ".nvmrc not found"
fi

Length of output: 764


🏁 Script executed:

#!/bin/bash
# Locate all GitHub Actions workflow YAML files
find .github/workflows -type f \( -name '*.yml' -o -name '*.yaml' \) | tee /tmp/workflows.txt

# Search for Node version specifications in those workflows
xargs -a /tmp/workflows.txt -I{} rg -nP 'node-version\s*:' {} 
xargs -a /tmp/workflows.txt -I{} rg -nP 'matrix:\s*node' {} 

Length of output: 197


Align Node.js version in README with package.json engines
In README.md (lines 11–12), replace

Version: >= 18.17.0

with

Version: >= 18

to match "engines.node": ">=18" in package.json.

🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

12-12: Bare URL used

(MD034, no-bare-urls)

🤖 Prompt for AI Agents
In README.md around lines 11 to 12, the Node.js version requirement is overly
specific (">= 18.17.0") and should match package.json's "engines.node": ">=18";
update the README line to "Version: >= 18" so both files are consistent,
ensuring the README uses the same broad engine constraint as package.json.

README.md Outdated
Comment on lines 28 to 34
### 2. Run Prisma to Generate Database Schema

```bash
cd ./libs/prisma-service/prisma
npx prisma generate
npx prisma db push
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Order of operations will break Prisma commands.

Prisma needs dependencies installed and DATABASE_URL configured before generate/db push/seed. As written, Step 2/3 may fail.

Minimal fix: call out prerequisites inline and reference .env.

 ### 2. Run Prisma to Generate Database Schema
+Prerequisites: run `npm install` at repo root and create `.env` with a valid `DATABASE_URL` before executing the commands below.

Also consider moving “Install Dependencies” and “Configure Environment Variables” ahead of Steps 2 and 3, or renumbering as:

  1. Configure Environment Variables, 2) Install Dependencies, 3) PostgreSQL, 4) Prisma generate/db push, 5) Seed.

Also applies to: 36-41, 62-69

🤖 Prompt for AI Agents
In README.md around lines 28-34 (also applicable to 36-41 and 62-69): the Prisma
commands are ordered before prerequisites and may fail because dependencies and
DATABASE_URL must be present; update the instructions to call out/configure
prerequisites inline (install project dependencies and set DATABASE_URL in .env)
before running npx prisma generate, npx prisma db push, or seeding, and either
move the "Install Dependencies" and "Configure Environment Variables" steps
ahead of the Prisma section or renumber the steps (e.g., 1 Configure Environment
Variables, 2 Install Dependencies, 3 PostgreSQL, 4 Prisma generate/db push, 5
Seed) so the README enforces the correct order.

Comment on lines 31 to 34
cd ./libs/prisma-service/prisma
npx prisma generate
npx prisma db push
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Confirm Prisma paths and seed script exist.

Verify libs/prisma-service/prisma/schema.prisma exists and that a Prisma seed script is configured; otherwise prisma db seed will no-op or fail.


🏁 Script executed:

#!/bin/bash
fd -u 'schema.prisma' | rg -n 'libs/prisma-service/prisma/schema.prisma' || echo "schema.prisma not found at expected path"
# Check Prisma dependency and seed config
fd -u package.json | xargs -I{} jq -r 'select(.name? and (.name|test("prisma|prisma-service"))) | {file:"{}", prisma:.devDependencies?.prisma // .dependencies?.prisma, client:.dependencies?["@prisma/client"], seed:.prisma?.seed}' {}

Length of output: 1404


🏁 Script executed:

#!/usr/bin/env bash
set -e

echo "Seed files under libs/prisma-service/prisma:"
fd -u 'seed.*' libs/prisma-service/prisma || echo "No seed.* files found"

if [ -f libs/prisma-service/package.json ]; then
  echo "Lines containing 'prisma' in libs/prisma-service/package.json:"
  grep -n '"prisma"' -n libs/prisma-service/package.json || echo "No 'prisma' config"
  echo "Lines containing 'seed' in libs/prisma-service/package.json:"
  grep -n '"seed"' -n libs/prisma-service/package.json || echo "No 'seed' config"
else
  echo "libs/prisma-service/package.json not found"
fi

Length of output: 122


Add or verify Prisma seed configuration
A seed file exists at libs/prisma-service/prisma/seed.ts, but there’s no package.json in that folder declaring a prisma.seed entry. Ensure your Prisma service’s package.json (either in libs/prisma-service/prisma or your monorepo root) includes, for example:

"prisma": {
  "seed": "ts-node --transpile-only prisma/seed.ts"
}

and that @prisma/client and ts-node (or equivalent) are installed, so npx prisma db seed actually runs your script.

🤖 Prompt for AI Agents
In README.md around lines 31 to 34, the docs run prisma generate/db push but do
not ensure a Prisma seed is configured; add or update a package.json either
under libs/prisma-service/prisma or at the monorepo root to include a "prisma":
{ "seed": "ts-node --transpile-only prisma/seed.ts" } entry (or an equivalent
command for your runtime), and make sure @prisma/client and ts-node (or your
chosen runner) are installed so npx prisma db seed will execute
libs/prisma-service/prisma/seed.ts.

@ankita-p17 ankita-p17 self-requested a review September 8, 2025 11:46
…nts. The changes include:

1. Container name: Changed from some-postgres to credebl-postgres for better identification
2. PostgreSQL version: Specified postgres:16 instead of using the latest tag
3. Database name: Added -e POSTGRES_DB=credebl to explicitly create the database
4. Password: Changed from placeholder <secretpassword> to changeme (a proper example password)
5. Data persistence: Added volume mapping -v credebl_pgdata:/var/lib/postgresql/data to persist data
6. Multi-line format: Formatted the command with line breaks for better readability

Signed-off-by: DeepDN <[email protected]>
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

♻️ Duplicate comments (4)
README.md (4)

11-12: Align Node.js engines and fix markdownlint MD034.

Use the same constraint as package.json and avoid a bare URL.

-### Install Node.js
-Version: >= 18.17.0  
-See: https://nodejs.dev/en/learn/how-to-install-nodejs/
+### Install Node.js
+Version: >= 18
+See: [How to install Node.js](https://nodejs.dev/en/learn/how-to-install-nodejs/)

42-47: Ensure Prisma seed is configured and prerequisites stated.

Add an explicit note so npx prisma db seed actually runs your seed script.

-### 3. Seed Initial Data
+### 3. Seed Initial Data
+Prerequisites: `.env` with `DATABASE_URL` and a configured Prisma seed (see `package.json` `"prisma.seed"`).

Example package.json snippet (where your Prisma client lives):

"prisma": { "seed": "ts-node --transpile-only prisma/seed.ts" }

73-75: Provide a minimal, copy‑pasteable .env example (align with docs.credebl.id).

This reduces setup friction and matches the linked docs thread.

-### Configure Environment Variables
-Configure environment variables in `.env` before you start the API Gateway.
+### Configure Environment Variables
+Create a `.env` before starting services, for example:
+
+```bash
+# Database
+DATABASE_URL="postgresql://credebl:changeme@localhost:5432/credebl?schema=public"
+# NATS
+NATS_URL="nats://localhost:4222"
+# Gateway
+PORT=5000
+```
+
+Refer to the canonical list in the docs for additional keys.

34-40: Prisma commands require deps and DATABASE_URL first.

As written, these may fail if npm install and .env aren’t set yet.

Minimal inline fix:

-### 2. Run Prisma to Generate Database Schema
+### 2. Run Prisma to Generate Database Schema
+Prerequisites: run `npm install` at repo root and create a `.env` with a valid `DATABASE_URL` before running the commands below.

Longer-term: consider moving “Install Dependencies” and “Configure Environment Variables” before this section.

🧹 Nitpick comments (2)
README.md (2)

14-17: Make NestJS CLI optional when using npx.

If you use npx nest ... later, a global/local install is optional; clarify to avoid confusion.

-### Install NestJS CLI
-```bash
-npm i @nestjs/cli@latest 
-```
+### (Optional) Install NestJS CLI
+If you prefer not to use `npx`, install the CLI:
+```bash
+npm i -g @nestjs/cli
+```

103-110: Clarify gateway URL/port source.

If PORT is configurable via .env, mention the default and reflect it: e.g., “By default http://localhost:5000/api (or http://localhost:${PORT}/api).”

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 24ce823 and 92fa6aa.

📒 Files selected for processing (1)
  • README.md (3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

8-8: Bare URL used

(MD034, no-bare-urls)


12-12: Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (3)
README.md (3)

8-8: Avoid bare URL (MD034).

Wrap the Docker link in markdown.
[raise_nitpick_refactor]

-See: https://docs.docker.com/engine/install/
+See: [Docker Engine install](https://docs.docker.com/engine/install/)

25-31: PostgreSQL container command looks solid.

Good: pinned major version, named container, DB/user/password, volume for persistence. Consider adding --health-cmd later, but not blocking.


114-114: Typo: “Askar” not “Asker.”
[raise_nitpick_refactor]

-For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Asker, Indy, etc.
+For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Askar, Indy, etc.

README.md Outdated
Comment on lines 51 to 57
### Pull NATS Docker Image

```
NATS is used for inter-service communication. The only prerequisite here is to install Docker.

```bash
docker pull nats:latest
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Avoid latest; pin the NATS image.

Use a major tag for repeatable setups, or drop manual pull if Compose handles it.

-```bash
-docker pull nats:latest
-```
+```bash
+docker pull nats:2
+```
🤖 Prompt for AI Agents
In README.md around lines 51 to 57, the instruction uses docker pull nats:latest
which is not repeatable; change the example to pin a major version (e.g., docker
pull nats:2) or remove the manual docker pull step entirely if docker-compose
already declares/pulls the image; update the bash block to show the chosen
approach so the README uses a stable, repeatable image reference.

README.md Outdated
Comment on lines 59 to 64
### Run NATS using Docker Compose
The `docker-compose.yml` file is available in the root folder.

```
```bash
docker-compose up
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Prefer modern Compose syntax and run detached.

Use docker compose and add -d.

-```bash
-docker-compose up
-```
+```bash
+docker compose up -d
+```
🤖 Prompt for AI Agents
In README.md around lines 59 to 64, the instruction uses legacy docker-compose
and runs in foreground; update the example to use the modern Docker Compose CLI
and run detached by replacing "docker-compose up" with "docker compose up -d"
and ensure the fenced code block language remains "bash" and contains only the
new command.

Comment on lines 79 to 81
```bash
nest start [--watch]
```
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Use npx for Nest commands to avoid PATH issues.

Running nest directly may fail without a global install; npx works out‑of‑the‑box.

-```bash
-nest start [--watch]
-```
+```bash
+npx nest start [--watch]
+```

-```bash
-nest start organization [--watch]
-```
+```bash
+npx nest start organization [--watch]
+```

-```bash
-nest start user [--watch]
-nest start ledger [--watch]
-nest start connection [--watch]
-nest start issuance [--watch]
-nest start verification [--watch]
-nest start agent-provisioning [--watch]
-nest start agent-service [--watch]
-```
+```bash
+npx nest start user [--watch]
+npx nest start ledger [--watch]
+npx nest start connection [--watch]
+npx nest start issuance [--watch]
+npx nest start verification [--watch]
+npx nest start agent-provisioning [--watch]
+npx nest start agent-service [--watch]
+```

Also applies to: 88-89, 94-101

🤖 Prompt for AI Agents
In README.md around lines 79-81 (and also apply same change to lines 88-89 and
94-101), the examples call the global "nest" binary which can fail if not
installed; update each code block to prefix commands with "npx " (e.g., replace
"nest start ..." with "npx nest start ...") so the commands work without a
global install and ensure all listed service start commands are similarly
updated.

@DeepDN DeepDN requested a review from KambleSahil3 September 14, 2025 17:15
README.md Outdated
```

**Run prisma to generate db schema**
### 2. Run Prisma to Generate Database Schema
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @DeepakNemad you can update to maintain consistency of bullet and numbering as well in the document.
For example, Setup Instructions have numbering but other headings doesn't (Install NATS Message Broker etc)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @ankita-p17

  • Thanks for the suggestions, As per the suggestion I have made a changes and pushed the updated changes to same branch I request you to please review it once.

Copy link

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

♻️ Duplicate comments (7)
README.md (7)

11-12: Align Node.js version with package.json engines

Use a broad major to match "engines.node": ">=18".

-Version: >= 18.17.0  
+Version: >= 18

73-75: Provide a minimal .env example (copy‑pasteable)

Reduces setup friction and aligns with docs.credebl.id.

-### 4.2. Configure Environment Variables
-Configure environment variables in `.env` before you start the API Gateway.
+### 4.2. Configure Environment Variables
+Create a `.env` file before starting services, for example:
+
+```bash
+# Database
+DATABASE_URL="postgresql://credebl:changeme@localhost:5432/credebl?schema=public"
+# NATS
+NATS_URL="nats://localhost:4222"
+# Gateway
+PORT=5000
+```
+Note: Use strong, non‑default credentials outside local development.

55-57: Avoid latest; pin NATS image

Use a stable tag or rely on Compose to pull.

-```bash
-docker pull nats:latest
-```
+```bash
+docker pull nats:2
+```

62-64: Use modern Compose syntax and run detached

Switch to docker compose and add -d.

-```bash
-docker-compose up
-```
+```bash
+docker compose up -d
+```

79-101: Prefer npx nest to avoid global CLI assumptions

Works without a global install; also keep Step 1.3 optional or remove.

-```bash
-nest start [--watch]
-```
+```bash
+npx nest start [--watch]
+```

-```bash
-nest start organization [--watch]
-```
+```bash
+npx nest start organization [--watch]
+```

-```bash
-nest start user [--watch]
-nest start ledger [--watch]
-nest start connection [--watch]
-nest start issuance [--watch]
-nest start verification [--watch]
-nest start agent-provisioning [--watch]
-nest start agent-service [--watch]
-```
+```bash
+npx nest start user [--watch]
+npx nest start ledger [--watch]
+npx nest start connection [--watch]
+npx nest start issuance [--watch]
+npx nest start verification [--watch]
+npx nest start agent-provisioning [--watch]
+npx nest start agent-service [--watch]
+```

34-47: Ensure Prisma seed is configured to actually run

Add a note that package.json must define a Prisma seed script (e.g., ts-node prisma/seed.ts) so npx prisma db seed executes.


34-41: Prisma steps require deps and DATABASE_URL first

As written, npx prisma generate/db push may fail without npm install and a valid .env.

-### 2.2. Run Prisma to Generate Database Schema
+### 2.2. Run Prisma to Generate Database Schema
+Prerequisites: run `npm install` at the repo root and create a `.env` with a valid `DATABASE_URL` before running the commands below.
🧹 Nitpick comments (6)
README.md (6)

8-8: Fix markdownlint MD034 (bare URL)

Use a proper Markdown link.

-See: https://docs.docker.com/engine/install/
+See: [Docker Engine installation](https://docs.docker.com/engine/install/)

12-12: Fix markdownlint MD034 (bare URL)

Use a proper Markdown link.

-See: https://nodejs.dev/en/learn/how-to-install-nodejs/
+See: [How to install Node.js](https://nodejs.dev/en/learn/how-to-install-nodejs/)

14-17: Make NestJS CLI install optional or global

If keeping this step, install globally; otherwise remove in favor of npx.

[suggest_minor_issue]

-### 1.3. Install NestJS CLI
+### 1.3. (Optional) Install NestJS CLI globally
 ```bash
-npm i @nestjs/cli@latest 
+npm i -g @nestjs/cli@latest

---

`105-109`: **Prefer a clickable inline link over a code block**

Minor readability improvement.



```diff
-```
-http://localhost:5000/api
-```
+Access via: http://localhost:5000/api

113-115: Fix typo: “Asker” → “Askar”

Refers to Hyperledger Aries Askar.

-For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Asker, Indy, etc.
+For the core SSI capabilities, it leverages the great work from multiple open-source projects such as Hyperledger Aries, Bifold, Askar, Indy, etc.

7-8: Clarify Compose v2 availability

Compose v2 ships with Docker; adjust wording.

-### 1.1. Install Docker and Docker Compose
+### 1.1. Install Docker (includes Docker Compose v2)
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 92fa6aa and 31284a8.

📒 Files selected for processing (1)
  • README.md (3 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
README.md

8-8: Bare URL used

(MD034, no-bare-urls)


12-12: Bare URL used

(MD034, no-bare-urls)

🔇 Additional comments (1)
README.md (1)

25-31: Postgres command improvements look good

Pinned image, named volume, explicit DB/user creds — all solid for local dev. Consider adding a one‑liner warning not to use changeme in prod.

@DeepDN DeepDN requested a review from ankita-p17 September 18, 2025 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix: readme
4 participants