Skip to content

Conversation

@Aiyaret-Sandhu
Copy link

@Aiyaret-Sandhu Aiyaret-Sandhu commented Jul 12, 2025

This pull request updates the README.md file to improve clarity and correctness of the setup instructions.

Changes Made

  • Removed outdated or incorrect installation instructions.
  • Added correct steps for setting up the project via Docker using a configuration file.
  • Included a complete sample my-config.json.
  • Added a note specifying Ubuntu LTS (20.04 or later) as the preferred OS.

Summary by CodeRabbit

  • Documentation
    • Updated instructions for running the REST API using the Credo Controller repository and Docker images.
    • Added detailed setup methods including local development, building, and using prebuilt Docker images with PostgreSQL.
    • Recommended Ubuntu LTS (20.04 or later), Node.js 18.19.0, and Yarn for development.
    • Provided explicit guidance on JSON configuration files and PostgreSQL wallet connection parameters.
    • Clarified WebSocket and webhook usage with improved wording and formatting.

@coderabbitai
Copy link

coderabbitai bot commented Jul 12, 2025

Walkthrough

The README.md documentation was updated to replace references to the Aries Framework JavaScript REST API with the Credo Controller REST API. It introduces multiple detailed setup methods including local development, building and running Docker images, and using prebuilt images with PostgreSQL. Configuration guidance now emphasizes JSON config files and updated connection parameters. No code or exported entities were changed.

Changes

Cohort / File(s) Change Summary
Documentation update
README.md
Replaced Aries Framework JS REST API references with Credo Controller REST API; restructured quick start into multiple detailed setup methods; updated OS and Node.js recommendations; replaced simple Docker run with cloning and running Credo Controller repo; emphasized JSON config file usage and PostgreSQL wallet connection details; minor wording and formatting improvements throughout.

Poem

🐇
A README refreshed, so clear and bright,
With Docker commands set just right.
A config file now leads the way,
On Ubuntu LTS, you'll code all day.
From old to new, instructions flow—
The rabbit hops where changes grow!

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

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

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

47-49: Prefer platform-agnostic wording or add Windows/macOS notes

Stating that Ubuntu 20.04 + is the “preferred OS” might discourage (or confuse) Windows/macOS developers although Docker makes the instructions portable. Either soften the wording (“tested on …”) or add a short note that the Docker flow works cross-platform.


50-55: Pin to a tag or commit to ensure reproducible clones

main can move unexpectedly. Consider cloning a specific tag/commit in the docs to guarantee readers get the version that matches the README.

-git clone https://github.com/credebl/credo-controller.git
-cd credo-controller
+git clone --branch vX.Y.Z https://github.com/credebl/credo-controller.git
+cd credo-controller

60-63: Clarify sample path & ensure path works when README is rendered on npmjs

The sample file lives in samples/cliConfig.json, not /samples/… (the leading slash suggests an absolute path).
Also note that npm renders README at package root, where an absolute path won’t link correctly.


66-89: Mask secrets or use placeholders in public docs

Real-looking secrets ("my-secret-key", "admin-password") invite copy-paste into production. Replace with obvious placeholders (e.g. "<MY_SECRET_KEY>") or add a bold warning above the block.


64-64: Remove trailing colon in heading to satisfy Markdown-lint

Heading #### Example \my-config.json`:` triggers MD026.
Drop the trailing colon:

-#### Example `my-config.json`:
+#### Example `my-config.json`

91-94: Fix blank line inside blockquote (MD028)

There’s an empty line between two quote blocks which markdown-lint flags. Collapse the quotes into one or remove the blank line.

-> Ensure `my-config.json` is placed at the root of the project directory.
-
-> Do not commit `my-config.json` to version control. It may contain sensitive credentials.
+> Ensure `my-config.json` is placed at the root of the project directory.  
+> **Important:** Do not commit `my-config.json` to version control. It may contain sensitive credentials.

100-108: Unify list marker style & follow MD004

Earlier lists use - while this block uses *. Pick one style project-wide (most of the doc uses -).

-* Map container port `3000` to your local machine.
-* Mount the `my-config.json` configuration file into the container.
-* Start the application with the specified configuration.
+- Map container port `3000` to your local machine.
+- Mount the `my-config.json` configuration file into the container.
+- Start the application with the specified configuration.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 679ffa8 and 2c775d1.

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

64-64: Trailing punctuation in heading
Punctuation: ':'

(MD026, no-trailing-punctuation)


92-92: Blank line inside blockquote

(MD028, no-blanks-blockquote)


106-106: Unordered list style
Expected: dash; Actual: asterisk

(MD004, ul-style)


107-107: Unordered list style
Expected: dash; Actual: asterisk

(MD004, ul-style)


108-108: Unordered list style
Expected: dash; Actual: asterisk

(MD004, ul-style)

@RinkalBhojani RinkalBhojani requested a review from GHkrishna July 23, 2025 07:26
@GHkrishna
Copy link
Contributor

@Aiyaret-Sandhu Do you mind having a look at the failing DCOs

Copy link
Contributor

@GHkrishna GHkrishna left a comment

Choose a reason for hiding this comment

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

We can also, maybe look at better formatting the readme, especially in having appropriate heading sizes.

Also, the image for AFJ can most probably be update to be taken from the newest credo-ts image, along with changing all the reference for AFJ to credo or credo-controller as per appropriate

@GHkrishna GHkrishna added the documentation Improvements or additions to documentation label Jul 29, 2025
@Aiyaret-Sandhu
Copy link
Author

@GHkrishna I have looked at the DCOs and will correct them, please review my replies to your queries and confirm if i should proceed with the changes.

@GHkrishna
Copy link
Contributor

confirm if i should proceed with the changes

Yes sure, I've addressed those comments

Signed-off-by: Aiyaret Sandhu <arshsandhuprofessional@gmail.com>
Signed-off-by: Aiyaret Sandhu <arshsandhuprofessional@gmail.com>
@sonarqubecloud
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

🔭 Outside diff range comments (1)
README.md (1)

14-18: Fix broken licence badge link

The badge still points to the old Aries-Framework repo. This gives the wrong licence and 404s if that repo moves.

-  <a
-    href="https://raw.githubusercontent.com/hyperledger/aries-framework-javascript-ext/main/LICENSE"
+  <a
+    href="https://raw.githubusercontent.com/credebl/credo-controller/main/LICENSE"
♻️ Duplicate comments (1)
README.md (1)

157-161: Duplicate host-network limitation appears again

Same comment as above: the pre-built-image example also relies on --network host. Please align the guidance here with whatever fix you choose for Method 2.

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

64-71: Relax the hard-pinned Node.js version

Locking the docs to the patch release 18.19.0 is unnecessarily strict. It will quickly become stale, and users on 18.[20-x] (or the current 20 LTS) will assume the project is incompatible.

Recommend wording along the lines of “Node.js 18 LTS (tested on 18.19)” and add a note that 20 LTS is expected to work but is not part of CI yet.


40-43: Address markdown-lint warnings

http://localhost:3000/docs is flagged as a bare URL (MD034). Wrap it in angle brackets or an inline link to silence automated docs linters.

See the documentation at <http://localhost:3000/docs>.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2c775d1 and 73758fa.

📒 Files selected for processing (1)
  • README.md (4 hunks)
🧰 Additional context used
🧠 Learnings (1)
README.md (2)

Learnt from: GHkrishna
PR: #281
File: samples/cliConfig.json:46-46
Timestamp: 2025-07-08T07:51:37.348Z
Learning: Sample configuration files in samples/ directories appropriately contain placeholder values like "supersecret" for API keys and other secrets to demonstrate the expected configuration format.

Learnt from: GHkrishna
PR: #281
File: src/authentication.ts:0-0
Timestamp: 2025-07-09T11:14:49.387Z
Learning: In the credo-controller project, the team prefers JWT token cache to not expire (no TTL) for their authentication implementation in src/authentication.ts.

🪛 markdownlint-cli2 (0.17.2)
README.md

40-40: Bare URL used

(MD034, no-bare-urls)


69-69: Blank line inside blockquote

(MD028, no-blanks-blockquote)

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

107-112: --network host is Linux-only

docker run --network host … fails on Docker Desktop for macOS and Windows. For cross-platform instructions either:

  • switch to explicit port mapping (-p 3000:3000 -p 8080:8080 …), or
  • keep the current flag but add a note that it works only on Linux/WSL.

Without this, new users on the two most common desktop platforms will hit a cryptic error.

@GHkrishna
Copy link
Contributor

I think this PR looks good to me. However, I'll need to check for the last statements regarding startServer and setupServer

@ajile-in
Copy link
Member

ajile-in commented Oct 9, 2025

@Aiyaret-Sandhu I think commits do not have verified signatures. Can you please fix them?
@GHkrishna may be able to guide you.

@GHkrishna
Copy link
Contributor

I think commits do not have verifier signatures.

I'm not really sure why the verified mark won't show up here, but as per the DCO, the commits are signed. So we won't be needing to worry about signing them again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: README Local Deployment Instructions Broken & Invalid URLs Present

3 participants