Skip to content

Documentation Update for the windows environment - #492

Open
NethmikaKekuu wants to merge 8 commits into
LDFLK:mainfrom
NethmikaKekuu:windows-docs
Open

Documentation Update for the windows environment #492
NethmikaKekuu wants to merge 8 commits into
LDFLK:mainfrom
NethmikaKekuu:windows-docs

Conversation

@NethmikaKekuu

@NethmikaKekuu NethmikaKekuu commented Jul 31, 2026

Copy link
Copy Markdown
Member

This PR closes #488

This PR Adds documentation to setup OpenGIN in a windows environment by adding the relevant env files and commands to execute them.
And also steps to setup cloud databases instead of docker containers and to run OpenGIN locally

Summary by CodeRabbit

  • Documentation
    • Expanded installation guidance with pinned prerequisites and local setup options for Docker-hosted and cloud databases.
    • Added platform-specific startup, testing, environment configuration, and service generation instructions.
    • Improved Windows PowerShell setup guidance across core, ingestion, and read services.
    • Added grpcurl installation and validation instructions for Windows, macOS, and Linux.
  • Developer Experience
    • Added PowerShell environment templates with service connection defaults and configuration examples.
    • Clarified service-specific commands for running tests, generating interfaces, and starting local services.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 474a894a-f19c-42e1-a26a-b7c023e011eb

📥 Commits

Reviewing files that changed from the base of the PR and between cb4c160 and 5729c4a.

📒 Files selected for processing (1)
  • opengin/core-api/env.template.ps1
💤 Files with no reviewable changes (1)
  • opengin/core-api/env.template.ps1

📝 Walkthrough

Walkthrough

The PR updates installation and service README documentation. It pins Ballerina, adds local database setup, documents Windows PowerShell workflows, adds service environment templates, and separates generation, testing, and startup instructions.

Changes

Setup documentation

Layer / File(s) Summary
Prerequisites and database setup
docs/docs/getting_started/installation.md
The installation guide pins Ballerina to 2201.13.4 and documents Docker or cloud database setup.
CORE service setup
opengin/core-api/env.template.ps1, opengin/core-api/README.md, docs/docs/getting_started/installation.md
CORE now includes PowerShell setup commands, environment variables, Windows executable instructions, and Windows grpcurl installation.
Ingestion service setup
opengin/ingestion-api/*, docs/docs/getting_started/installation.md
The documentation adds generation steps, platform-specific environment setup, test prerequisites, startup commands, and a PowerShell template.
Read service setup
opengin/read-api/*, docs/docs/getting_started/installation.md
The documentation separates generation, environment setup, testing, and startup instructions, with a PowerShell template for service connections.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related issues

  • #493: The PR adds the Windows setup documentation and environment-variable updates described by this issue.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: documentation updates for Windows environments.
Linked Issues check ✅ Passed The changes address issue #488 by documenting Windows setup, environment files, commands, and local OpenGIN execution.
Out of Scope Changes check ✅ Passed The changes remain within scope for issue #488 and support Windows setup and local OpenGIN execution.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Fix failing CI checks
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 11

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/docs/getting_started/installation.md`:
- Line 37: Update the installation instructions near the Docker alternative to
refer to starting CORE in step 2 instead of step 3, while preserving the
existing step 3 reference for ingestion-api where applicable.
- Line 26: Rename the “Start the System (Locally, without Docker)” section
heading to accurately cover both database options, using “Start the System
Locally” or “Start the Services Locally” and removing the “without Docker”
wording.
- Around line 38-48: Update the environment-variable examples in the
installation documentation to quote every cloud placeholder containing angle
brackets, including the Neo4j, MongoDB, and PostgreSQL values. Add a brief
instruction that users must replace each quoted placeholder with their actual
connection details.
- Around line 64-70: Update the Windows PowerShell installation steps after
copying env.template.ps1 and before sourcing .env.ps1 to instruct users to edit
the file and populate the required database and service configuration values.
Keep the subsequent sourcing, build, and execution commands unchanged.
- Around line 8-10: Update the Ballerina version in
docs/docs/getting_started/installation.md at lines 8-10 from 2201.13.4 to
2201.11.0. The corresponding sections in opengin/ingestion-api/README.md lines
3-9 and opengin/read-api/README.md lines 3-9 already match and require no direct
changes.
- Around line 35-48: Update the cloud database setup instructions to include
non-empty MONGO_DB_NAME and MONGO_COLLECTION values and an explicit
POSTGRES_SSL_MODE setting, using require where the provider mandates it. Reorder
the installation steps so users copy the environment template before editing and
applying these cloud connection values, ensuring the later setup step does not
overwrite their changes.

In `@opengin/core-api/env.template.ps1`:
- Around line 7-21: Update the Neo4j configuration blocks in env.template.ps1 so
the default local assignments for NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD are
commented out, preventing them from overriding uncommented development or
testing values while preserving the existing local-testing options.

In `@opengin/core-api/README.md`:
- Around line 38-47: Update the Windows PowerShell setup sequence in the README
to build core-service.exe before invoking it. Add the project’s existing build
command between the go test command and .\core-service.exe, preserving the
current test and launch steps.

In `@opengin/ingestion-api/env.template.ps1`:
- Around line 1-11: Make the two configuration formats in env.template.ps1
mutually selectable: keep the development variables active by default and
comment out the deployment assignments, including CORE_SERVICE_URL and
INGESTION_SERVICE_URL, so PowerShell does not overwrite the development
configuration; retain clear comments indicating how to enable the deployment
block.

In `@opengin/ingestion-api/README.md`:
- Around line 72-75: Make the service-start commands use a consistent
working-directory convention: in opengin/ingestion-api/README.md lines 72-75 and
opengin/read-api/README.md lines 72-75, run the CORE command from the repository
root or use paths relative to the current directory; in
opengin/ingestion-api/README.md lines 97-98 and opengin/read-api/README.md lines
97-98, remove the duplicate directory change or reset to the repository root
before starting the service.

In `@opengin/read-api/env.template.ps1`:
- Around line 1-7: Update CORE_SERVICE_URL in the environment template to use a
reachable local or deployed Core hostname instead of 0.0.0.0, and remove
READ_SERVICE_URL because read-api does not consume it.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: ba5b6f31-85fb-4962-9e73-1240a9a25a60

📥 Commits

Reviewing files that changed from the base of the PR and between b85611f and cb4c160.

📒 Files selected for processing (7)
  • docs/docs/getting_started/installation.md
  • opengin/core-api/README.md
  • opengin/core-api/env.template.ps1
  • opengin/ingestion-api/README.md
  • opengin/ingestion-api/env.template.ps1
  • opengin/read-api/README.md
  • opengin/read-api/env.template.ps1

Comment thread docs/docs/getting_started/installation.md
Comment thread docs/docs/getting_started/installation.md
Comment thread docs/docs/getting_started/installation.md
Comment thread docs/docs/getting_started/installation.md
Comment thread docs/docs/getting_started/installation.md
Comment thread opengin/core-api/env.template.ps1 Outdated
Comment thread opengin/core-api/README.md
Comment thread opengin/ingestion-api/env.template.ps1
Comment thread opengin/ingestion-api/README.md
Comment thread opengin/read-api/env.template.ps1
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.

[OpenGIN] Update setup documentation for Windows environment

1 participant